From d41c132dfafde4cdd2d7e0f4553ba1cee09a8c6c Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 29 Jan 2016 12:45:57 +1100 Subject: [PATCH] glcontext: back out unintended lost_context changes --- gst-libs/gst/gl/egl/gstglcontext_egl.c | 8 +------- gst-libs/gst/gl/gstglcontext.c | 6 ------ 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/gst-libs/gst/gl/egl/gstglcontext_egl.c b/gst-libs/gst/gl/egl/gstglcontext_egl.c index c5887031a8..ce8d8f589c 100644 --- a/gst-libs/gst/gl/egl/gstglcontext_egl.c +++ b/gst-libs/gst/gl/egl/gstglcontext_egl.c @@ -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 diff --git a/gst-libs/gst/gl/gstglcontext.c b/gst-libs/gst/gl/gstglcontext.c index bd6b5885ea..f103146b8f 100644 --- a/gst-libs/gst/gl/gstglcontext.c +++ b/gst-libs/gst/gl/gstglcontext.c @@ -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: