View Full Version : glClear() problem
06-28-2002, 08:52 AM
Why is glClear wiping out my entire window instead of just the area specified with glViewport(..) ?
06-28-2002, 09:41 AM
The scissor test is used to decide what area to clear.
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?
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.
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.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.