![]() ![]() ![]() ![]() GlGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS, &maxTextureUnits) įor (int i = 0 i < maxTextureUnits i++) The initial value is GL_TEXTURE0.” void Simple3DEngine::ClearTextureState() texture must be one of GL_TEXTUREi, where i ranges from 0 - (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The number of texture units is implementation dependent, but must be at least 80. “Specifies which texture unit to make active. I’m wondering why the following code generates an OpenGL error (unsupported texture unit)…GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS returns 192, function has error with glActiveTexture(GL_TEXTURE0+32)…The OpenGL man pages states for glActiveTexture:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |