fixed opengl texture units capability query in glw.
This commit is contained in:
parent
8e162f62fc
commit
5accefa385
|
@ -453,7 +453,7 @@ class Context : public detail::NonCopyable
|
|||
|
||||
{
|
||||
GLint texUnits = 0;
|
||||
glGetIntegerv(GL_MAX_TEXTURE_UNITS, &texUnits);
|
||||
glGetIntegerv(GL_MAX_TEXTURE_IMAGE_UNITS, &texUnits);
|
||||
this->m_maxTextureUnits = int(texUnits);
|
||||
for (int i=0; i<this->m_maxTextureUnits; ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue