glmemory: reset the draw buffer to GL_BACK
authorHyunjun Ko <zzoon@igalia.com>
Wed, 28 Jun 2017 03:17:37 +0000 (12:17 +0900)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:29 +0000 (19:32 +0000)
The draw buffer should be reset to GL_BACK since the framebuffer is already
unbound.

https://bugzilla.gnome.org/show_bug.cgi?id=784210

gst-libs/gst/gl/gstglmemory.c

index 02848f0..5b4c91f 100644 (file)
@@ -746,7 +746,7 @@ gst_gl_memory_copy_teximage (GstGLMemory * src, guint tex_id,
     gl->DeleteFramebuffers (n_fbos, &fbo[0]);
 
     if (gl->DrawBuffer)
-      gl->DrawBuffer (GL_NONE);
+      gl->DrawBuffer (GL_BACK);
   }
 
   gst_memory_unmap (GST_MEMORY_CAST (src), &sinfo);