]> git.tdb.fi Git - libs/gl.git/blobdiff - source/extension.cpp
Add a tool to convert a mesh into C code
[libs/gl.git] / source / extension.cpp
index ba7dd4020d4ce9164a39e525ae520073b9fbe1cc..cd8c6297759d57494d8f372276e8a467a6d12d85 100644 (file)
@@ -1,12 +1,13 @@
 /* $Id$
 
 This file is part of libmspgl
-Copyright © 2007  Mikko Rasa, Mikkosoft Productions
+Copyright © 2007, 2009-2010  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #include <set>
 #ifndef WIN32
+#define GLX_GLXEXT_PROTOTYPES
 #include <GL/glx.h>
 #endif
 #include <msp/strings/formatter.h>
@@ -76,6 +77,8 @@ const Version &get_gl_version()
                        init_version_1_2();
                if(combined>=0x103)
                        init_version_1_3();
+
+               init_done = true;
        }
 
        return version;