]> git.tdb.fi Git - libs/gl.git/blobdiff - source/extension.cpp
Remove the global drawing functions
[libs/gl.git] / source / extension.cpp
index ef05e39bfca79705841ecf4a96ce682a8942a322..bc43ae8bbbee902533c24a8c05b071aed1eb2b41 100644 (file)
@@ -6,6 +6,7 @@
 #include <msp/strings/format.h>
 #include <msp/strings/utils.h>
 #include "arb_shader_objects.h"
+#include "arb_uniform_buffer_object.h"
 #include "arb_vertex_buffer_object.h"
 #include "arb_vertex_program.h"
 #include "arb_vertex_shader.h"
@@ -38,7 +39,7 @@ bool is_supported(const string &ext)
                }
 
                /* XXX Conceptually a bit weird place for this, but I couldn't really come up
-                  with anything better that would still be transparent. */
+               with anything better that would still be transparent. */
                if(extensions.count("GL_ARB_shader_objects"))
                        init_arb_shader_objects();
                if(extensions.count("GL_ARB_vertex_shader"))
@@ -55,6 +56,8 @@ bool is_supported(const string &ext)
                        init_arb_vertex_buffer_object();
                if(extensions.count("GL_NV_primitive_restart"))
                        init_nv_primitive_restart();
+               if(extensions.count("GL_ARB_uniform_buffer_object"))
+                       init_arb_uniform_buffer_object();
 
                init_done = true;
        }