mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
glmemory: reenable the texture_rg support for !eagl
The GST_GL_HAVE_PLATFORM_EAGL is always defined we need to compare against the value instead.
This commit is contained in:
parent
e6d5dd04d5
commit
2b82b78ef5
2 changed files with 3 additions and 3 deletions
|
@ -690,7 +690,7 @@ _YUV_to_RGB (GstGLColorConvert * convert)
|
|||
GstVideoFormat out_format = GST_VIDEO_INFO_FORMAT (&convert->out_info);
|
||||
const gchar *out_format_str = gst_video_format_to_string (out_format);
|
||||
gchar *pixel_order = _RGB_pixel_order ("rgba", out_format_str);
|
||||
#ifdef GST_GL_HAVE_PLATFORM_EAGL
|
||||
#if GST_GL_HAVE_PLATFORM_EAGL
|
||||
gboolean texture_rg = FALSE;
|
||||
#else
|
||||
gboolean texture_rg =
|
||||
|
@ -889,7 +889,7 @@ _GRAY_to_RGB (GstGLColorConvert * convert)
|
|||
GstVideoFormat out_format = GST_VIDEO_INFO_FORMAT (&convert->out_info);
|
||||
const gchar *out_format_str = gst_video_format_to_string (out_format);
|
||||
gchar *pixel_order = _RGB_pixel_order ("rgba", out_format_str);
|
||||
#ifdef GST_GL_HAVE_PLATFORM_EAGL
|
||||
#if GST_GL_HAVE_PLATFORM_EAGL
|
||||
gboolean texture_rg = FALSE;
|
||||
#else
|
||||
gboolean texture_rg =
|
||||
|
|
|
@ -193,7 +193,7 @@ GstVideoGLTextureType
|
|||
gst_gl_texture_type_from_format (GstGLContext * context,
|
||||
GstVideoFormat v_format, guint plane)
|
||||
{
|
||||
#ifdef GST_GL_HAVE_PLATFORM_EAGL
|
||||
#if GST_GL_HAVE_PLATFORM_EAGL
|
||||
gboolean texture_rg = FALSE;
|
||||
#else
|
||||
gboolean texture_rg =
|
||||
|
|
Loading…
Reference in a new issue