Scissor Test And Framebuffer Clearing: Difference between revisions

From OpenGL Wiki
Jump to navigation Jump to search
Marco (talk | contribs)
No edit summary
(No difference)

Revision as of 11:41, 1 May 2006

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:

  glDisable (GL_SCISSOR_TEST);
  glClear (...);
  glEnable (GL_SCISSOR_TEST);