Hello, I have this problem.



I'm setting all the texture indexes and vertices correct (when I start gl scene with each of the three rectangles separately they are OK). But when I put them all together, the bottom (blue one) goes ontop of the walls (red ones). So how to configure opengl to draw this think properly?

P.S. I'm new in gl technology