diff --git a/plugins/csp-sharad/src/Sharad.cpp b/plugins/csp-sharad/src/Sharad.cpp index 65ae31089..9e23a0b87 100644 --- a/plugins/csp-sharad/src/Sharad.cpp +++ b/plugins/csp-sharad/src/Sharad.cpp @@ -301,7 +301,7 @@ bool Sharad::Do() { mShader.SetUniform(mUniforms.time, static_cast(mCurrTime - mStartTime)); mTexture->Bind(GL_TEXTURE0); - auto depthBuffer = mGraphicsEngine->getCurrentDepthBufferAsTexture(false); + auto depthBuffer = mGraphicsEngine->getCurrentDepthBufferAsTexture(true); depthBuffer->Bind(GL_TEXTURE1); glPushAttrib(GL_ENABLE_BIT | GL_DEPTH_BUFFER_BIT);