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
6e0877507e
commit
2832940603
@ -306,9 +306,9 @@ COGL_FEATURE_FUNCTION (void, glClientActiveTexture,
|
|||||||
COGL_FEATURE_END ()
|
COGL_FEATURE_END ()
|
||||||
|
|
||||||
/* Optional, declared in 1.4 */
|
/* Optional, declared in 1.4 */
|
||||||
COGL_FEATURE_BEGIN (in_1_4, 1, 4,
|
COGL_FEATURE_BEGIN (blend_func_separate, 1, 4,
|
||||||
"\0",
|
"EXT\0",
|
||||||
"\0",
|
"blend_func_separate\0",
|
||||||
0)
|
0)
|
||||||
COGL_FEATURE_FUNCTION (void, glBlendFuncSeparate,
|
COGL_FEATURE_FUNCTION (void, glBlendFuncSeparate,
|
||||||
(GLenum srcRGB,
|
(GLenum srcRGB,
|
||||||
@ -318,9 +318,9 @@ COGL_FEATURE_FUNCTION (void, glBlendFuncSeparate,
|
|||||||
COGL_FEATURE_END ()
|
COGL_FEATURE_END ()
|
||||||
|
|
||||||
/* Optional, declared in 2.0 */
|
/* Optional, declared in 2.0 */
|
||||||
COGL_FEATURE_BEGIN (in_2_0, 2, 0,
|
COGL_FEATURE_BEGIN (blend_equation_separate, 2, 0,
|
||||||
"\0",
|
"EXT\0",
|
||||||
"\0",
|
"blend_equation_separate\0",
|
||||||
0)
|
0)
|
||||||
COGL_FEATURE_FUNCTION (void, glBlendEquationSeparate,
|
COGL_FEATURE_FUNCTION (void, glBlendEquationSeparate,
|
||||||
(GLenum modeRGB,
|
(GLenum modeRGB,
|
||||||
|
Loading…
Reference in New Issue
Block a user