1 #include "ext_blend_minmax.h"
6 PFNGLBLENDEQUATIONEXTPROC glBlendEquation = 0;
8 Extension::SupportLevel init_ext_blend_minmax()
10 if(is_version_at_least(1, 2))
12 glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONEXTPROC>(get_proc_address("glBlendEquation"));
13 return Extension::CORE;
15 if(is_supported("GL_EXT_blend_minmax"))
17 glBlendEquation = reinterpret_cast<PFNGLBLENDEQUATIONEXTPROC>(get_proc_address("glBlendEquationEXT"));
18 return Extension::EXTENSION;
20 return Extension::UNSUPPORTED;
23 Extension EXT_blend_minmax("GL_EXT_blend_minmax", init_ext_blend_minmax);