]> git.tdb.fi Git - libs/gl.git/blobdiff - source/arb_texture_float.cpp
Check the relevant extensions when using pixel formats
[libs/gl.git] / source / arb_texture_float.cpp
diff --git a/source/arb_texture_float.cpp b/source/arb_texture_float.cpp
new file mode 100644 (file)
index 0000000..9f76b3f
--- /dev/null
@@ -0,0 +1,22 @@
+#include "arb_texture_float.h"
+
+namespace Msp {
+namespace GL {
+
+Extension::SupportLevel init_arb_texture_float()
+{
+       if(is_version_at_least(3, 0))
+       {
+               return Extension::CORE;
+       }
+       if(is_supported("GL_ARB_texture_float"))
+       {
+               return Extension::EXTENSION;
+       }
+       return Extension::UNSUPPORTED;
+}
+
+Extension ARB_texture_float("GL_ARB_texture_float", init_arb_texture_float);
+
+} // namespace GL
+} // namespace Msp