View Full Version : glClear() problem
aj123
06-28-2002, 08:52 AM
Why is glClear wiping out my entire window instead of just the area specified with glViewport(..) ?
mikael_aronsson
06-28-2002, 09:41 AM
Hi !
The scissor test is used to decide what area to clear.
Mikael
aj123
06-28-2002, 09:49 AM
..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?
aj123
06-28-2002, 09:59 AM
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.
aj123
06-28-2002, 10:32 AM
Yes, I did, and I noticed only the area I specified was active/useable/whatever, but _still_ the rest of my window got black.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.