mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-27 00:16:37 +00:00
[748/906] glupload: GL_STENCIL_ATTACHMENT is needed for desktop GL, not GLES
This commit is contained in:
parent
6c5ce0ee99
commit
b28a1e943d
1 changed files with 1 additions and 4 deletions
|
@ -787,13 +787,10 @@ _init_download (GstGLDisplay * display, GstGLDownload * download)
|
||||||
/* attach the depth render buffer to the FBO */
|
/* attach the depth render buffer to the FBO */
|
||||||
gl->FramebufferRenderbuffer (GL_FRAMEBUFFER,
|
gl->FramebufferRenderbuffer (GL_FRAMEBUFFER,
|
||||||
GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer);
|
GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer);
|
||||||
|
if (USING_OPENGL (display)) {
|
||||||
#if GST_GL_HAVE_GLES2
|
|
||||||
if (USING_GLES2 (display)) {
|
|
||||||
gl->FramebufferRenderbuffer (GL_FRAMEBUFFER,
|
gl->FramebufferRenderbuffer (GL_FRAMEBUFFER,
|
||||||
GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer);
|
GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, download->depth_buffer);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
if (!gst_gl_display_check_framebuffer_status (display))
|
if (!gst_gl_display_check_framebuffer_status (display))
|
||||||
gst_gl_display_set_error (display, "GL framebuffer status incomplete");
|
gst_gl_display_set_error (display, "GL framebuffer status incomplete");
|
||||||
|
|
Loading…
Reference in a new issue