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:
Erico Nunes 2021-08-24 18:07:40 +02:00
parent 264c625b79
commit 420a17d12e

View File

@ -132,10 +132,10 @@ COGL_EXT_FUNCTION (void, glEGLImageTargetTexture2D,
GLeglImageOES image)) GLeglImageOES image))
COGL_EXT_END () COGL_EXT_END ()
COGL_EXT_BEGIN (framebuffer_discard, 255, 255, COGL_EXT_BEGIN (discard_framebuffer, 255, 255,
0, /* not in either GLES */ 0, /* not in either GLES */
"EXT\0", "EXT\0",
"framebuffer_discard\0") "discard_framebuffer\0")
COGL_EXT_FUNCTION (void, glDiscardFramebuffer, COGL_EXT_FUNCTION (void, glDiscardFramebuffer,
(GLenum target, (GLenum target,
GLsizei numAttachments, GLsizei numAttachments,