Textures not working with OpenGL

前端 未结 2 343
一向
一向 2021-01-26 03:58

I am trying to load a texture from an array. I have a quad that is supposed to be used for the texture.

#include 
#include 
#inc         


        
2条回答
  •  北海茫月
    2021-01-26 05:03

    In your draw call you have:

    glDisable(GL_TEXTURE_2D);
    

    But you have no corresponding glEnable in the draw call. If you window renders more than once, subsequent frames will have texturing disabled.

提交回复
热议问题