How do you query which is the active texture unit

… in multitexturing?
That is the question Thanks!

you use glGet with GL_ACTIVE_TEXTURE as the first parameter
http://www.opengl.org/sdk/docs/man/xhtml/glGet.xml

but i would think it’s faster just to tell it which one should be active, or just keep track of it yourself using a simple variable.

Thanks!
I realized after 2 hours of debugging that I don’t need to query it after all, but I can’t remove the topic :stuck_out_tongue:
Thanks anyway!