[mutter] cogl: Fix GL_EXT_discard_framebuffer extension check



commit 420a17d12e6b48662efeebbc134cc30f8dfd38e9
Author: Erico Nunes <nunes erico gmail com>
Date:   Tue Aug 24 18:07:40 2021 +0200

    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>

 cogl/cogl/gl-prototypes/cogl-all-functions.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl/gl-prototypes/cogl-all-functions.h b/cogl/cogl/gl-prototypes/cogl-all-functions.h
index 3a31a610ac..fe9feaa5c0 100644
--- a/cogl/cogl/gl-prototypes/cogl-all-functions.h
+++ b/cogl/cogl/gl-prototypes/cogl-all-functions.h
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]