[cogl/cogl-1.12] Fix the terminator in one of the extension lists



commit 956379965539ed4507095d84da923ac4e06ba961
Author: Neil Roberts <neil linux intel com>
Date:   Thu Sep 27 18:12:42 2012 +0100

    Fix the terminator in one of the extension lists
    
    The list of extension names in COGL_EXT_BEGIN should be a zero
    separated list of strings which is terminated by an empty string. The
    name for the GL_ARB_shader_objects extension was missing the zero
    separator so presumably it was relying on the following byte to happen
    to be a zero in order not to crash.
    
    Reviewed-by: Robert Bragg <robert linux intel com>
    
    (cherry picked from commit f63381f23fa8b0b17e030561940b8a38efff221f)

 cogl/gl-prototypes/cogl-all-functions.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/cogl/gl-prototypes/cogl-all-functions.h b/cogl/gl-prototypes/cogl-all-functions.h
index 3ef1cfb..1fa475f 100644
--- a/cogl/gl-prototypes/cogl-all-functions.h
+++ b/cogl/gl-prototypes/cogl-all-functions.h
@@ -236,7 +236,7 @@ COGL_EXT_END ()
 COGL_EXT_BEGIN (shader_objects, 255, 255,
                 0, /* not in either GLES */
                 "ARB\0",
-                "shader_objects")
+                "shader_objects\0")
 COGL_EXT_FUNCTION (GLuint, glCreateProgramObject,
                    (void))
 COGL_EXT_FUNCTION (GLuint, glCreateShaderObject,



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