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)
This commit is contained in:
parent
f9e7f8df94
commit
9563799655
@ -236,7 +236,7 @@ COGL_EXT_END ()
|
|||||||
COGL_EXT_BEGIN (shader_objects, 255, 255,
|
COGL_EXT_BEGIN (shader_objects, 255, 255,
|
||||||
0, /* not in either GLES */
|
0, /* not in either GLES */
|
||||||
"ARB\0",
|
"ARB\0",
|
||||||
"shader_objects")
|
"shader_objects\0")
|
||||||
COGL_EXT_FUNCTION (GLuint, glCreateProgramObject,
|
COGL_EXT_FUNCTION (GLuint, glCreateProgramObject,
|
||||||
(void))
|
(void))
|
||||||
COGL_EXT_FUNCTION (GLuint, glCreateShaderObject,
|
COGL_EXT_FUNCTION (GLuint, glCreateShaderObject,
|
||||||
|
Loading…
Reference in New Issue
Block a user