After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 668856 - Do not look for GLES2-only GLSL prototypes on GL
Do not look for GLES2-only GLSL prototypes on GL
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: GL
unspecified
Other Mac OS
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-01-27 16:16 UTC by Emmanuele Bassi (:ebassi)
Modified: 2012-01-27 16:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Move GLES2 prototypes to their header (2.85 KB, patch)
2012-01-27 16:16 UTC, Emmanuele Bassi (:ebassi)
none Details | Review
Move GLES2 prototypes to their header / v2.0 (2.85 KB, patch)
2012-01-27 16:35 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Emmanuele Bassi (:ebassi) 2012-01-27 16:16:21 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).
Comment 1 Emmanuele Bassi (:ebassi) 2012-01-27 16:35:40 UTC
Created attachment 206281 [details] [review]
Move GLES2 prototypes to their header / v2.0
Comment 2 Emmanuele Bassi (:ebassi) 2012-01-27 16:39:34 UTC
Reviewed-by: Neil Roberts

pushed to master