eglglessink: Don't do context ops at render

We don't need to repeatedly call
eglMakeCurrent() while using the
same context anyway.
This commit is contained in:
Reynaldo H. Verdejo Pinochet 2012-09-20 22:11:08 -03:00 committed by Sebastian Dröge
parent ca74f676fd
commit d56d126031

View file

@ -1506,14 +1506,6 @@ gst_eglglessink_render_and_display (GstEglGlesSink * eglglessink,
"Got good buffer %p. Sink geometry is %dx%d size %d", buf, w, h,
GST_BUFFER_SIZE (buf));
/* Make sure we stay on our context to avoid threading nightmares */
if (!eglMakeCurrent (eglglessink->display, eglglessink->surface,
eglglessink->surface, eglglessink->context)) {
GST_ERROR_OBJECT (eglglessink, "Couldn't bind surface/context, "
"eglMakeCurrent");
goto HANDLE_ERROR;
}
switch (eglglessink->rendering_path) {
#ifdef EGL_FAST_RENDERING_POSSIBLE
case GST_EGLGLESSINK_RENDER_FAST: