X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftexunit.cpp;h=7eb89a98c0515219dfd66d2a8448e622f2226dac;hb=ccd59643144950604f95339683bac0ca4e8366d1;hp=d581598a6c190e2caf46c59d11140d403c30e79b;hpb=777f5f37f2d89ef2a787a77d74372b643968740e;p=libs%2Fgl.git diff --git a/source/texunit.cpp b/source/texunit.cpp index d581598a..7eb89a98 100644 --- a/source/texunit.cpp +++ b/source/texunit.cpp @@ -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);