How to draw only on certain areas?

Hello! I’m making 2d action game with split screen 2-player mode, the problem is that it player 2 screen draws over player 1’s screen!

Use glViewport and glScissor to restrict drawing to a rectangle in the window.

How to use scissors?

http://www.cs.uregina.ca/~cdshaw/OpenGL/glScissor.html

Oh, i haven’t enabled scissor test, so that was my probbie. Thnx!

thanks, it works well now