Can people please tell my what kind of variable you’re using to store what glGenTextures() gives you.
Currently I have
unsigned int textureID[MAX_TEXTURES];
and I call
and when I do an
fprintf(f, “%d”, texture);
I usually get a 0, or sometimes a negative number…
this is vexing me more than I can say, as I have identical code running in two projects, and one texturemaps, and the other doesnt…