GNOME Bugzilla – Bug 668856
Do not look for GLES2-only GLSL prototypes on GL
Last modified: 2012-01-27 16:39:37 UTC
Created attachment 206277 [details] [review] Move GLES2 prototypes to their header while Mesa is perfectly happy to return dummy function pointers, other platforms are more picky about this stuff. Mac OS, in particular, but it should apply for WGL as well, will return NULL when looking for GLES 2.0 prototypes like glGetShaderPrecisionFormat and glShaderBinary; this, in turn, will disable GLSL support. the attached patch moves the prototypes from the shader glsl header to the gles2 one, and makes GLSL work again on Mac OS (tested on Snow Leopard and Lion).
Created attachment 206281 [details] [review] Move GLES2 prototypes to their header / v2.0
Reviewed-by: Neil Roberts pushed to master