]> git.tdb.fi Git - libs/gl.git/blobdiff - source/texunit.cpp
Make extensions compatible with OpenGL ES
[libs/gl.git] / source / texunit.cpp
index 74a23246b368ac6ad3b6b3d69765c5f6d4bbd82e..31c90777aad10eccd5a4e9d110de2a0846809f26 100644 (file)
@@ -39,7 +39,7 @@ unsigned TexUnit::get_n_units()
        if(count<0)
        {
                if(ARB_vertex_shader)
-                       count = get_i(GL_MAX_TEXTURE_IMAGE_UNITS);
+                       count = get_i(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS);
                else if(ARB_multitexture)
                        count = get_i(GL_MAX_TEXTURE_UNITS);
                else