From b28a1e943d0eeb8a7f3f746d06c1debf2f233570 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 12 Jul 2013 14:31:48 +0200 Subject: [PATCH] [748/906] glupload: GL_STENCIL_ATTACHMENT is needed for desktop GL, not GLES --- gst-libs/gst/gl/gstgldownload.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gst-libs/gst/gl/gstgldownload.c b/gst-libs/gst/gl/gstgldownload.c index b238222070..db2a8d4d4e 100644 --- a/gst-libs/gst/gl/gstgldownload.c +++ b/gst-libs/gst/gl/gstgldownload.c @@ -787,13 +787,10 @@ _init_download (GstGLDisplay * display, GstGLDownload * download) /* attach the depth render buffer to the FBO */ gl->FramebufferRenderbuffer (GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer); - -#if GST_GL_HAVE_GLES2 - if (USING_GLES2 (display)) { + if (USING_OPENGL (display)) { gl->FramebufferRenderbuffer (GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer); } -#endif if (!gst_gl_display_check_framebuffer_status (display)) gst_gl_display_set_error (display, "GL framebuffer status incomplete");