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

前端 未结 6 519
南笙
南笙 2020-12-10 12:53

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.
6条回答
  •  情深已故
    2020-12-10 13:11

    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

提交回复
热议问题