mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
glcolorconvert: Only use GL_TEXTURE_RECTANGLE with OpenGL
It's not defined for GLES.
This commit is contained in:
parent
9f1cb84523
commit
46086ac1fe
1 changed files with 4 additions and 1 deletions
|
@ -837,11 +837,14 @@ _YUV_to_RGB (GstGLColorConvert * convert)
|
|||
"GL_APPLE_ycbcr_422");
|
||||
gboolean in_tex_rectangular = FALSE;
|
||||
|
||||
#if GST_GL_HAVE_OPENGL
|
||||
GstMemory *memory = gst_buffer_peek_memory (convert->inbuf, 0);
|
||||
if (gst_is_gl_memory (memory)) {
|
||||
if (gst_is_gl_memory (memory) && (USING_OPENGL (convert->context)
|
||||
|| USING_OPENGL3 (convert->context))) {
|
||||
in_tex_rectangular =
|
||||
((GstGLMemory *) memory)->tex_target == GL_TEXTURE_RECTANGLE;
|
||||
}
|
||||
#endif
|
||||
|
||||
info->out_n_textures = 1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue