mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
eglglessink: Catch errors from glEGLImageTargetTexture2DOES()
This commit is contained in:
parent
1fbea3e39d
commit
1ad5e5b329
1 changed files with 2 additions and 0 deletions
|
@ -2292,6 +2292,8 @@ gst_eglglessink_upload (GstEglGlesSink * eglglessink, GstBuffer * buf)
|
||||||
|
|
||||||
glBindTexture (GL_TEXTURE_2D, mem->texture[i]);
|
glBindTexture (GL_TEXTURE_2D, mem->texture[i]);
|
||||||
glEGLImageTargetTexture2DOES (GL_TEXTURE_2D, mem->image[i]);
|
glEGLImageTargetTexture2DOES (GL_TEXTURE_2D, mem->image[i]);
|
||||||
|
if (got_gl_error ("glEGLImageTargetTexture2DOES"))
|
||||||
|
goto HANDLE_ERROR;
|
||||||
}
|
}
|
||||||
eglglessink->stride[0] = 1;
|
eglglessink->stride[0] = 1;
|
||||||
eglglessink->stride[1] = 1;
|
eglglessink->stride[1] = 1;
|
||||||
|
|
Loading…
Reference in a new issue