mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-03 13:16:04 +00:00
glcolorconvert: Add correct check for RG/R textures in glcolorconvert too
https://bugzilla.gnome.org/show_bug.cgi?id=732507
This commit is contained in:
parent
c45072ae86
commit
bd2821982f
|
@ -900,8 +900,10 @@ _YUV_to_RGB (GstGLColorConvert * convert)
|
||||||
gboolean texture_rg = FALSE;
|
gboolean texture_rg = FALSE;
|
||||||
#else
|
#else
|
||||||
gboolean texture_rg =
|
gboolean texture_rg =
|
||||||
gst_gl_context_check_feature (convert->context, "GL_EXT_texture_rg")
|
gst_gl_context_check_feature (context, "GL_EXT_texture_rg")
|
||||||
|| gst_gl_context_check_feature (convert->context, "GL_ARB_texture_rg");
|
|| gst_gl_context_check_gl_version (context, GST_GL_API_GLES2, 3, 0)
|
||||||
|
|| gst_gl_context_check_feature (context, "GL_ARB_texture_rg")
|
||||||
|
|| gst_gl_context_check_gl_version (context, GST_GL_API_OPENGL3, 3, 0);
|
||||||
#endif
|
#endif
|
||||||
gboolean apple_ycbcr = gst_gl_context_check_feature (convert->context,
|
gboolean apple_ycbcr = gst_gl_context_check_feature (convert->context,
|
||||||
"GL_APPLE_ycbcr_422");
|
"GL_APPLE_ycbcr_422");
|
||||||
|
@ -1138,8 +1140,10 @@ _GRAY_to_RGB (GstGLColorConvert * convert)
|
||||||
gboolean texture_rg = FALSE;
|
gboolean texture_rg = FALSE;
|
||||||
#else
|
#else
|
||||||
gboolean texture_rg =
|
gboolean texture_rg =
|
||||||
gst_gl_context_check_feature (convert->context, "GL_EXT_texture_rg")
|
gst_gl_context_check_feature (context, "GL_EXT_texture_rg")
|
||||||
|| gst_gl_context_check_feature (convert->context, "GL_ARB_texture_rg");
|
|| gst_gl_context_check_gl_version (context, GST_GL_API_GLES2, 3, 0)
|
||||||
|
|| gst_gl_context_check_feature (context, "GL_ARB_texture_rg")
|
||||||
|
|| gst_gl_context_check_gl_version (context, GST_GL_API_OPENGL3, 3, 0);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
info->in_n_textures = 1;
|
info->in_n_textures = 1;
|
||||||
|
|
Loading…
Reference in a new issue