mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
glcontext: back out unintended lost_context changes
This commit is contained in:
parent
49199b03ac
commit
406fe90331
2 changed files with 1 additions and 13 deletions
|
@ -720,13 +720,7 @@ gst_gl_context_egl_swap_buffers (GstGLContext * context)
|
|||
|
||||
egl = GST_GL_CONTEXT_EGL (context);
|
||||
|
||||
if (!eglSwapBuffers (egl->egl_display, egl->egl_surface)) {
|
||||
EGLint err = eglGetError ();
|
||||
|
||||
if (err == EGL_CONTEXT_LOST) {
|
||||
gst_gl_context_lost_context (context);
|
||||
}
|
||||
}
|
||||
eglSwapBuffers (egl->egl_display, egl->egl_surface);
|
||||
}
|
||||
|
||||
static GstGLAPI
|
||||
|
|
|
@ -1388,12 +1388,6 @@ failure:
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
void
|
||||
gst_gl_context_lost_context (GstGLContext * context)
|
||||
{
|
||||
/* do stuff */
|
||||
}
|
||||
|
||||
/**
|
||||
* gst_gl_context_get_gl_context:
|
||||
* @context: a #GstGLContext:
|
||||
|
|
Loading…
Reference in a new issue