Commit 0f250193 authored by Michele Bosi's avatar Michele Bosi

Background clear is not clipped against scissor

parent f69a186b
......@@ -563,11 +563,15 @@ void VividRenderer::renderFrontToBackPeeling(const RenderQueue* render_queue, Ca
glDepthMask( GL_FALSE );
// clear & render the background
// don't clip the background against the scissor
VL_CHECK( camera->viewport()->isScissorEnabled() );
camera->viewport()->setScissorEnabled( false );
camera->viewport()->setClearFlags( CF_CLEAR_COLOR_DEPTH );
camera->viewport()->activate();
if ( mVividRendering->backgroundImageEnabled() ) {
renderBackgroundImage( camera );
}
camera->viewport()->setScissorEnabled( true );
glEnable( GL_BLEND );
glBlendEquation( GL_FUNC_ADD );
......
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