mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +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
03ef435c45
commit
dc5b0c8c8d
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