View Full Version : Not rendering good texture

Jack Web
04-03-2011, 03:15 AM

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.

Jack Web
04-03-2011, 12:15 PM
Solved; didn't call gluseProgram(program); :) Thanks.