Commit 984fac93 authored by Jan Möbius's avatar Jan Möbius

Let the glwidget do the buffer clearing, not the renderers

git-svn-id: 383ad7c9-94d9-4d36-a494-682f7c89f535
parent d9997af1
......@@ -636,6 +636,16 @@ void glViewer::drawScene()
// }
// Clear back buffer here:
// Render plugins do not have to worry about using scissor test for clearing their viewports later on.
glClearColor(properties_.backgroundColor()[0], properties_.backgroundColor()[1], properties_.backgroundColor()[2], 1.0f);
GLint curViewport[4];
glGetIntegerv(GL_VIEWPORT, curViewport);
glScissor(curViewport[0], curViewport[1], curViewport[2], curViewport[3]);
// Check if we use build in default renderer
if ( renderManager().activeId( properties_.viewerId() ) == 0 ) {
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment