]> git.tdb.fi Git - libs/gl.git/blobdiff - source/ext_blend_minmax.cpp
Function pointer typedefs for core functions are not available everywhere
[libs/gl.git] / source / ext_blend_minmax.cpp
index 225a05f8c8c03fb1f4c9756080c78536b1767de6..3db30bfb39d4b58013c2fdf3f58237ff7e8564ae 100644 (file)
@@ -3,18 +3,18 @@
 namespace Msp {
 namespace GL {
 
-PFNGLBLENDEQUATIONPROC glBlendEquation = 0;
+PFNGLBLENDEQUATIONEXTPROC glBlendEquation = 0;
 
 Extension::SupportLevel init_ext_blend_minmax()
 {
        if(is_version_at_least(1, 2))
        {
-               glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONPROC>(get_proc_address("glBlendEquation"));
+               glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONEXTPROC>(get_proc_address("glBlendEquation"));
                return Extension::CORE;
        }
        if(is_supported("GL_EXT_blend_minmax"))
        {
-               glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONPROC>(get_proc_address("glBlendEquationEXT"));
+               glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONEXTPROC>(get_proc_address("glBlendEquationEXT"));
                return Extension::EXTENSION;
        }
        return Extension::UNSUPPORTED;