mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
[888/906] correct error handling in gstgldownload.c
This commit is contained in:
parent
cdfa3a03c9
commit
08d71feaa4
1 changed files with 3 additions and 1 deletions
|
@ -640,8 +640,10 @@ _init_download (GstGLContext * context, GstGLDownload * download)
|
|||
GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer);
|
||||
}
|
||||
|
||||
if (!gst_gl_context_check_framebuffer_status (context))
|
||||
if (!gst_gl_context_check_framebuffer_status (context)) {
|
||||
gst_gl_context_set_error (context, "GL framebuffer status incomplete");
|
||||
goto error;
|
||||
}
|
||||
|
||||
/* unbind the FBO */
|
||||
gl->BindFramebuffer (GL_FRAMEBUFFER, 0);
|
||||
|
|
Loading…
Reference in a new issue