Why is glClear wiping out my entire window instead of just the area specified with glViewport(…) ?
Hi !
The scissor test is used to decide what area to clear.
Mikael
…and the scissor test is used how? I found a function Scissor(…) but it doesn’t seem to be declared in my program. Is there some external library I should include?
Okay. I found a glScissor now. Sorry. But my window still wipes out (gets all black). I don’t want other than my little openGL rectangle to be touched!
Did you enable the scissor test? It’s disabled by default.
Yes, I did, and I noticed only the area I specified was active/useable/whatever, but still the rest of my window got black.
Post some code.