Original Post
Hey all, I’m trying to “turn off” active textures 0 and 1. I do the following to load them into a shader of mine: /* Load the cloud texture. */ glActiveTexture(GL_TEXTURE0 + 0); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, id_cloud); glActiveTexture(GL_TEXTURE0 + 1); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, id_cloud); But when I do the following later on, all hell breaks lose: glColor4f(0.0f, 1.0f, 0.0f, 1.0f); // This colour has no effect! /* Render the foreground. */ glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, id_floor); // This texture has no effect! RenderStuff(); glDisable(GL_TEXTURE_2D); I’ve traced the problem to not “turning off” my first set the textures “id_cloud”! ‘cos’ if I comment out enabling my cloud textures, everything works fine. So, in short, how do I disable what I have enabled?: /* Load the cloud texture. */ glActiveTexture(GL_TEXTURE0 + 0); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, id_cloud); glActiveTexture(GL_TEXTURE0 + 1); glEnable(GL_TEXTURE_2D); glBindTexture(GL_TEXTURE_2D, id_cloud); If further explanation is required, just ask. Thanks in advance!