]> git.tdb.fi Git - libs/gl.git/blobdiff - source/extension.cpp
Default to Utf8 instead of direct mapping in Font
[libs/gl.git] / source / extension.cpp
index 1a603defe0d24bbf6249b576bda1a86eceab0f48..e250bb249c9f04fd9fce24ebd3a42762ded9657d 100644 (file)
@@ -13,6 +13,7 @@ Distributed under the LGPL
 #include <msp/strings/utils.h>
 #include "arb_shader_objects.h"
 #include "arb_vertex_shader.h"
+#include "ext_framebuffer_object.h"
 #include "except.h"
 #include "extension.h"
 
@@ -40,6 +41,8 @@ bool is_supported(const string &ext)
                        init_arb_shader_objects();
                if(extensions.count("GL_ARB_vertex_shader"))
                        init_arb_vertex_shader();
+               if(extensions.count("GL_EXT_framebuffer_object"))
+                       init_ext_framebuffer_object();
 
                init_done=true;
        }
@@ -56,7 +59,7 @@ void require_extension(const string &ext)
 ExtFunc *get_proc_address(const string &name)
 {
 #ifndef WIN32
-       return glXGetProcAddress(reinterpret_cast<const GLubyte *>(name.c_str()));
+       return glXGetProcAddressARB(reinterpret_cast<const GLubyte *>(name.c_str()));
 #endif
 }