From 5accefa385731c66045cd9bb1ca9d966f7a08fc5 Mon Sep 17 00:00:00 2001 From: dibenedetto Date: Mon, 18 Jun 2012 13:47:51 +0000 Subject: [PATCH] fixed opengl texture units capability query in glw. --- wrap/glw/context.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrap/glw/context.h b/wrap/glw/context.h index 515b5cbe..d402ea02 100644 --- a/wrap/glw/context.h +++ b/wrap/glw/context.h @@ -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; im_maxTextureUnits; ++i) {