summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2012-09-27 18:12:42 +0100
committerNeil Roberts <neil@linux.intel.com>2012-09-28 17:13:45 +0100
commitf63381f23fa8b0b17e030561940b8a38efff221f (patch)
tree2a7ab16b74617da64b6e5e70231b7bce5d5fd32c
parente947c713a541086f80a308d22774229f0720196a (diff)
downloadcogl-f63381f23fa8b0b17e030561940b8a38efff221f.tar.gz
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>
-rw-r--r--cogl/gl-prototypes/cogl-all-functions.h2
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 3ef1cfb7..1fa475fb 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,