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:15:11 +0100
commit956379965539ed4507095d84da923ac4e06ba961 (patch)
tree8547354e5b6c180d82290c1c999408f2da44dac4
parentf9e7f8df94bb8ff6bd96207fc7cffe8fdee20ea1 (diff)
downloadcogl-956379965539ed4507095d84da923ac4e06ba961.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> (cherry picked from commit f63381f23fa8b0b17e030561940b8a38efff221f)
-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,