Khrob
10-12-2000, 05:58 AM
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
glGenTextures(1, &textureID[0]);
and when I do an
fprintf(f, "%d", texture[0]);
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...
Heeeeeelpp!!!
Currently I have
unsigned int textureID[MAX_TEXTURES];
and I call
glGenTextures(1, &textureID[0]);
and when I do an
fprintf(f, "%d", texture[0]);
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...
Heeeeeelpp!!!