Skip to content

Commit df83a0e

Browse files
committed
🪲 Fix error in sharad plugin that rendered wrong when HDR was disabled.
1 parent c9d63bf commit df83a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/csp-sharad/src/Sharad.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ bool Sharad::Do() {
301301
mShader.SetUniform(mUniforms.time, static_cast<float>(mCurrTime - mStartTime));
302302

303303
mTexture->Bind(GL_TEXTURE0);
304-
auto depthBuffer = mGraphicsEngine->getCurrentDepthBufferAsTexture(false);
304+
auto depthBuffer = mGraphicsEngine->getCurrentDepthBufferAsTexture(true);
305305
depthBuffer->Bind(GL_TEXTURE1);
306306

307307
glPushAttrib(GL_ENABLE_BIT | GL_DEPTH_BUFFER_BIT);

0 commit comments

Comments
 (0)