Hello everyone!
I discovered a strange bug and I can’t find an explanation for that. Most times (about 80% of the cases but not everytime) when I draw a model with the same texture as the model before the texture is not painted. I unbind all textures everytime before I bind a new one and I can’t find the reason for this bug.
Here’s my texture binding part:
public void render(float x, float y, float z, float rY, float scale, Texture t)
{
glEnable(GL_TEXTURE_2D);
glBindTexture(GL_TEXTURE_2D, 0);
if(t != null)
t.bind();
Any ideas?