glmemory: reset the draw buffer to GL_BACK

The draw buffer should be reset to GL_BACK since the framebuffer is already
unbound.

https://bugzilla.gnome.org/show_bug.cgi?id=784210
This commit is contained in:
Hyunjun Ko 2017-06-28 12:17:37 +09:00 committed by Matthew Waters
parent 2d511343cb
commit 02ef39f48a

View 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);