mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 16:40:41 -05:00
cogl: Fix GL_EXT_discard_framebuffer extension check
Using "framebuffer_discard" in the list refers to an invalid extension. The extension which introduces glDiscardFramebufferEXT is "GL_EXT_discard_framebuffer". With this fix, cogl_gl_framebuffer_fbo_discard_buffers can actually call glDiscardFramebufferEXT. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1974>
This commit is contained in:
parent
264c625b79
commit
420a17d12e
@ -132,10 +132,10 @@ COGL_EXT_FUNCTION (void, glEGLImageTargetTexture2D,
|
||||
GLeglImageOES image))
|
||||
COGL_EXT_END ()
|
||||
|
||||
COGL_EXT_BEGIN (framebuffer_discard, 255, 255,
|
||||
COGL_EXT_BEGIN (discard_framebuffer, 255, 255,
|
||||
0, /* not in either GLES */
|
||||
"EXT\0",
|
||||
"framebuffer_discard\0")
|
||||
"discard_framebuffer\0")
|
||||
COGL_EXT_FUNCTION (void, glDiscardFramebuffer,
|
||||
(GLenum target,
|
||||
GLsizei numAttachments,
|
||||
|
Loading…
Reference in New Issue
Block a user