Scissor Test And Framebuffer Clearing

From OpenGL Wiki
Revision as of 12:14, 3 January 2018 by Flfirsla (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Why doesn't glClear() work for areas outside the scissor rectangle?

The OpenGL Specification states that glClear() only clears the scissor rectangle when the scissor test is enabled. If you want to clear the entire window, use the code:

  // glClear(...);