Not rendering good texture

Hi!

This is my code: http://pastebin.com/fZHCnj4h

I am going to render some texture using multitexturing* and got problem:

I am calling glUniform with a parameter 1, but it’s something wrong: OpenGL renders GL_TEXTURE0 (img instead of img2)… What’s wrong with that code? What to change in it?

*In fact I’m using only the second texture now, but in another shader I can use the first, so because of it I use two textures.

Solved; didn’t call gluseProgram(program); :slight_smile: Thanks.