What are the usual troubleshooting steps for OpenGL textures not showing?

Nick Bolton picture Nick Bolton · Apr 11, 2009 · Viewed 12.4k times · Source

After making a few changes in my application, my textures are no longer showing. So far I've checked the following:

  • The camera direction hasn't changed.
  • I can see the vectors (when colored instead of textured).

Any usual suspects?

Answer

dragonfly picture dragonfly · Apr 11, 2009

You may want to check the following:

  • glEnable(GL_TEXTURE_2D); presence

  • glBindTexture(GL_TEXTURE_2D, texture[i]); and glBindTexture(GL_TEXTURE_2D, 0); when you don't need texture anymore