glcolorconvert: Only use GL_TEXTURE_RECTANGLE with OpenGL
It's not defined for GLES.
This commit is contained in:
parent
9f1cb84523
commit
46086ac1fe
@ -837,11 +837,14 @@ _YUV_to_RGB (GstGLColorConvert * convert)
|
|||||||
"GL_APPLE_ycbcr_422");
|
"GL_APPLE_ycbcr_422");
|
||||||
gboolean in_tex_rectangular = FALSE;
|
gboolean in_tex_rectangular = FALSE;
|
||||||
|
|
||||||
|
#if GST_GL_HAVE_OPENGL
|
||||||
GstMemory *memory = gst_buffer_peek_memory (convert->inbuf, 0);
|
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 =
|
in_tex_rectangular =
|
||||||
((GstGLMemory *) memory)->tex_target == GL_TEXTURE_RECTANGLE;
|
((GstGLMemory *) memory)->tex_target == GL_TEXTURE_RECTANGLE;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
info->out_n_textures = 1;
|
info->out_n_textures = 1;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user