Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

jaba

Efficiency???

This topic is 5571 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

What is more efficient: glDisable(GL_TEXTURE_2D) or glBindTexture(GL_TEXTURE_2D,0) thank you

Share this post


Link to post
Share on other sites
Advertisement
Well.. look at them both.. Would it not be easier to temporarily disable texture mapping in contrast to removing a texture from memory?

Even then, if you disable texture mapping, you can always re-enable it and continue texturing objects with the same texture.

Share this post


Link to post
Share on other sites
I do believe binding a texture takes significantly more time than toggling a state. Everywhere I''ve read says that you should minimize texture bindings because for performance reasons. Plus binding a null texture may cause strange results on some drivers...

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
These two things do something very different. They may look the same if you happen to have an invalid texture image for object 0, but that''s about it.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!