]> git.tdb.fi Git - libs/gl.git/commitdiff
Fix an incorrect extension name
authorMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 21:31:35 +0000 (00:31 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 26 Aug 2012 21:31:35 +0000 (00:31 +0300)
source/texunit.cpp

index d581598a6c190e2caf46c59d11140d403c30e79b..7eb89a98c0515219dfd66d2a8448e622f2226dac 100644 (file)
@@ -54,7 +54,7 @@ unsigned TexUnit::get_n_units()
        static int count = -1;
        if(count<0)
        {
-               if(is_version_at_least(2, 0) || is_supported("ARB_vertex_shader"))
+               if(is_version_at_least(2, 0) || is_supported("GL_ARB_vertex_shader"))
                        glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &count);
                else if(is_version_at_least(1, 3))
                        glGetIntegerv(GL_MAX_TEXTURE_UNITS, &count);