fixed opengl texture units capability query in glw.

This commit is contained in:
Marco Di Benedetto 2012-06-18 13:47:51 +00:00
parent 8e162f62fc
commit 5accefa385
1 changed files with 1 additions and 1 deletions
wrap/glw

View File

@ -453,7 +453,7 @@ class Context : public detail::NonCopyable
{ {
GLint texUnits = 0; GLint texUnits = 0;
glGetIntegerv(GL_MAX_TEXTURE_UNITS, &texUnits); glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &texUnits);
this->m_maxTextureUnits = int(texUnits); this->m_maxTextureUnits = int(texUnits);
for (int i=0; i<this->m_maxTextureUnits; ++i) for (int i=0; i<this->m_maxTextureUnits; ++i)
{ {