mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
glcontext: back out unintended lost_context changes
This commit is contained in:
parent
5d2ddf7664
commit
d41c132dfa
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);
|
egl = GST_GL_CONTEXT_EGL (context);
|
||||||
|
|
||||||
if (!eglSwapBuffers (egl->egl_display, egl->egl_surface)) {
|
eglSwapBuffers (egl->egl_display, egl->egl_surface);
|
||||||
EGLint err = eglGetError ();
|
|
||||||
|
|
||||||
if (err == EGL_CONTEXT_LOST) {
|
|
||||||
gst_gl_context_lost_context (context);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstGLAPI
|
static GstGLAPI
|
||||||
|
|
|
@ -1388,12 +1388,6 @@ failure:
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
gst_gl_context_lost_context (GstGLContext * context)
|
|
||||||
{
|
|
||||||
/* do stuff */
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_gl_context_get_gl_context:
|
* gst_gl_context_get_gl_context:
|
||||||
* @context: a #GstGLContext:
|
* @context: a #GstGLContext:
|
||||||
|
|
Loading…
Reference in a new issue