1
0
Fork 0
mutter-performance-source/cogl/gl-prototypes
Neil Roberts 763c1de2ab Use the old GLSL extensions if GL 2.0 is not available
Some drivers have good support for GLSL but don't have the complete
set of features needed to advertise GL 2.0 support. We should accept
the three old GLSL extensions (GL_ARB_shader_objects,
GL_ARB_vertex_shader and GL_ARB_fragment_shader) to support shaders on
these drivers.

This patch splits the shader functions into four sections :- those
that are provided only in GL 2.0, those that have the same name in the
shader objects extension, those that are provided by the vertex
shader extension (they all share the same name) and those that have a
different name in the shader objects extension.

If GL 2.0 is not supported but all three of the extensions are then
the pointers to the GL2-only functions will be replaced to point to
the equivalent functions from the extensions. That way the rest of the
Cogl source doesn't have to worry about the name differences.

https://bugzilla.gnome.org/show_bug.cgi?id=677078

Reviewed-by: Robert Bragg <robert@linux.intel.com>

(cherry picked from commit 71ecb51bd20dc3053b4221961b57e5a2b1029bdf)
2012-08-06 14:27:45 +01:00
..
cogl-all-functions.h Use the old GLSL extensions if GL 2.0 is not available 2012-08-06 14:27:45 +01:00
cogl-core-functions.h cogl-gles2: Add glTexParameterf to wrapper library 2012-08-06 14:27:44 +01:00
cogl-fixed-functions.h gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-gles1-functions.h gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-gles2-functions.h gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-glsl-functions.h Use the old GLSL extensions if GL 2.0 is not available 2012-08-06 14:27:45 +01:00
cogl-in-gles-core-functions.h Adds libcogl-gles2 frontend GLES2 api 2012-08-06 14:27:42 +01:00
cogl-in-gles1-core-functions.h gl-prototypes: split up cogl-ext-functions.h 2012-01-04 19:27:20 +00:00
cogl-in-gles2-core-functions.h Move GLES2 prototypes to their header 2012-01-27 16:37:55 +00:00