mirror of
https://github.com/brl/mutter.git
synced 2024-11-12 17:27:03 -05:00
cogl: Use the GL_EXT_blend_{func,equation}_separate extensions
We should use these extensions to check for glBlendFuncSeparate and glBlendEquationSeparate as well as checking the GL version number.
This commit is contained in:
parent
2a53b84d18
commit
0927f35e7a
@ -306,9 +306,9 @@ COGL_FEATURE_FUNCTION (void, glClientActiveTexture,
|
||||
COGL_FEATURE_END ()
|
||||
|
||||
/* Optional, declared in 1.4 */
|
||||
COGL_FEATURE_BEGIN (in_1_4, 1, 4,
|
||||
"\0",
|
||||
"\0",
|
||||
COGL_FEATURE_BEGIN (blend_func_separate, 1, 4,
|
||||
"EXT\0",
|
||||
"blend_func_separate\0",
|
||||
0)
|
||||
COGL_FEATURE_FUNCTION (void, glBlendFuncSeparate,
|
||||
(GLenum srcRGB,
|
||||
@ -318,9 +318,9 @@ COGL_FEATURE_FUNCTION (void, glBlendFuncSeparate,
|
||||
COGL_FEATURE_END ()
|
||||
|
||||
/* Optional, declared in 2.0 */
|
||||
COGL_FEATURE_BEGIN (in_2_0, 2, 0,
|
||||
"\0",
|
||||
"\0",
|
||||
COGL_FEATURE_BEGIN (blend_equation_separate, 2, 0,
|
||||
"EXT\0",
|
||||
"blend_equation_separate\0",
|
||||
0)
|
||||
COGL_FEATURE_FUNCTION (void, glBlendEquationSeparate,
|
||||
(GLenum modeRGB,
|
||||
|
Loading…
Reference in New Issue
Block a user