PDA

View Full Version : Can't bind past texture unit 7 in OpenGL ES for iOS?



Rakehell
10-30-2013, 04:14 PM
glActiveTexture(GL_TEXTURE8) results in GL_INVALID_ENUM. Shouldn't I have access to 32 texture units on the iPhone?

GClements
10-30-2013, 06:03 PM
OpenGL ES 2.0 only guarantees 8 texture units. Specific implementations may provide more; you can check the value using glGetIntegerv(GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS) .