]> git.tdb.fi Git - libs/gl.git/blob - source/ext_blend_subtract.cpp
Complete rewrite of extension handling
[libs/gl.git] / source / ext_blend_subtract.cpp
1 #include "ext_blend_subtract.h"
2
3 namespace Msp {
4 namespace GL {
5
6 Extension::SupportLevel init_ext_blend_subtract()
7 {
8         if(is_version_at_least(1, 2))
9         {
10                 return Extension::CORE;
11         }
12         if(is_supported("GL_EXT_blend_subtract"))
13         {
14                 return Extension::EXTENSION;
15         }
16         return Extension::UNSUPPORTED;
17 }
18
19 Extension EXT_blend_subtract("GL_EXT_blend_subtract", init_ext_blend_subtract);
20
21 } // namespace GL
22 } // namespace Msp