Clear stencil buffer when possible
This commit is contained in:
parent
9399db6eba
commit
af6b075450
@ -337,7 +337,8 @@ void ShaderBasedRenderer::renderSceneDeferred(scene::ICameraSceneNode * const ca
|
|||||||
} // end glow
|
} // end glow
|
||||||
|
|
||||||
m_rtts->getFBO(FBO_COLORS).bind();
|
m_rtts->getFBO(FBO_COLORS).bind();
|
||||||
glClear(GL_COLOR_BUFFER_BIT);
|
glClear(UserConfigParams::m_glow ? GL_COLOR_BUFFER_BIT :
|
||||||
|
GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT);
|
||||||
|
|
||||||
{
|
{
|
||||||
PROFILER_PUSH_CPU_MARKER("- Combine diffuse color", 0x2F, 0x77, 0x33);
|
PROFILER_PUSH_CPU_MARKER("- Combine diffuse color", 0x2F, 0x77, 0x33);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user