mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
763c1de2ab
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) |
||
---|---|---|
.. | ||
cogl-all-functions.h | ||
cogl-core-functions.h | ||
cogl-fixed-functions.h | ||
cogl-gles1-functions.h | ||
cogl-gles2-functions.h | ||
cogl-glsl-functions.h | ||
cogl-in-gles1-core-functions.h | ||
cogl-in-gles2-core-functions.h | ||
cogl-in-gles-core-functions.h |