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
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.