Skip to main content
GameDev.net gamedev.net
🔒 Locked

glActiveTextureARB(GL_TEXTURE1_ARB);

Started by MetaKnight May 31, 2003 at 9:02 PM 1 replies 2.2k views
Original Post
MetaKnight
MetaKnight
For some reason when i call: glActiveTextureARB(GL_TEXTURE1_ARB); my program just does nothing, like it displays black. glActiveTextureARB(GL_TEXTURE0_ARB) works fine, but glActiveTextureARB(GL_TEXTURE1_ARB) just stops the program? anyone know what could cause this? ill put any code needed [edited by - MetaKnight on May 31, 2003 10:03:10 PM]
Xero-X2
Xero-X2
Im saying this while not entirely understanding your problem. But to use the second texture unit you must enable texturesing and bind textrues. then to go back to the origainal you must use glActiveTextureARB(GL_TEXTURE0_ARB) again and then switch back and forth. make sure you use glEnable(GL_TEXTURE_2D); after your glActiveTextureARB(GL_TEXTURE1_ARB)

any why I hope that helped somehow.
"I seek knowledge and to help those who also seek it"
MetaKnight
MetaKnight
OH WAIT ITs working
AMAZING
thank you so much
you are the jesus of opengl




[edited by - MetaKnight on June 1, 2003 2:59:51 AM]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.