Original Post
Hi to all,
I''ve some problems with textures...
My program run properly for some seconds, displaying all the textures correctly, then it crashes...
My code looks like this:
/* Drawing function */
...
GLuint _texture;
for(count=0; count < numTri; count++)
{
_texture = myModel[count].getTexture();
glBindTexture(GL_TEXTURE_2D, _texture);
...
}
If I comment the glBindTexture(GL_TEXTURE_2D, _texture) line it''s all fine, so what''s the problem?
Do I have to uBind the textures?