PDA

View Full Version : glClear with glScissor



IG
04-30-2006, 06:45 AM
Is glClear oprates only in the sccisor window? Where can I find reference to this?

Komat
04-30-2006, 08:37 AM
Yes, clear operates only within scissored area.
Reference can be found in OpenGL specification, chapter "Clearing the Buffers":

"When Clear is called, the only per-fragment operations that are applied (if enabled) are the pixel ownership test, the scissor test, and dithering. The masking operations described in the last section (4.2.2) are also effective."