mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
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:
parent
ca74f676fd
commit
d56d126031
1 changed files with 0 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue