X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fextension.cpp;h=cd8c6297759d57494d8f372276e8a467a6d12d85;hb=c6c4fc39952e372eba1f44f2bc504428140f3d0e;hp=a5ad3191b88e518bae3116039a200a784bc0d6a8;hpb=a4ec5410595ddf37bfbc0e85ad87d31a9cbf94f1;p=libs%2Fgl.git diff --git a/source/extension.cpp b/source/extension.cpp index a5ad3191..cd8c6297 100644 --- a/source/extension.cpp +++ b/source/extension.cpp @@ -1,18 +1,20 @@ /* $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 #ifndef WIN32 +#define GLX_GLXEXT_PROTOTYPES #include #endif #include #include #include "arb_shader_objects.h" #include "arb_vertex_buffer_object.h" +#include "arb_vertex_program.h" #include "arb_vertex_shader.h" #include "ext_framebuffer_object.h" #include "except.h" @@ -45,6 +47,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_ARB_vertex_program")) + init_arb_vertex_program(); if(extensions.count("GL_EXT_framebuffer_object")) init_ext_framebuffer_object(); if(extensions.count("GL_ARB_vertex_buffer_object")) @@ -73,6 +77,8 @@ const Version &get_gl_version() init_version_1_2(); if(combined>=0x103) init_version_1_3(); + + init_done = true; } return version;