Added GraphicsContext support for clearing the graphis context. The clearing

is off by default (ClearMask is 0), but can be switched on when ClearMask is
non zero.  GraphicsContext::clear() is called after each swap buffers
This commit is contained in:
Robert Osfield
2007-01-05 15:24:06 +00:00
parent ed3c7ba116
commit 9fcace0e73
4 changed files with 47 additions and 4 deletions

View File

@@ -379,6 +379,7 @@ void SwapBuffersOperation::operator () (GraphicsContext* context)
if (context)
{
context->swapBuffersImplementation();
context->clear();
}
}