mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-24 08:08:22 +00:00
glcolorconvert: Only use GL_TEXTURE_RECTANGLE with OpenGL
It's not defined for GLES.
This commit is contained in:
parent
f577b52e5d
commit
4b6a968203
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