Skip to content

Commit

Permalink
Don't keep DEPTH_CLAMP enabled after it's used
Browse files Browse the repository at this point in the history
Probably a copy-paste bug, after enabling DEPTH_CLAMP we must disable
once we're done; but we call glEnable again instead of disabling it.

Signed-off-by: Matias N. Goldberg <[email protected]>
  • Loading branch information
darksylinc committed Sep 4, 2021
1 parent be61509 commit 054249d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogre2/src/Ogre2ThermalCamera.cc
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ void Ogre2ThermalCamera::Render()
this->scene->FlushGpuCommandsAndStartNewFrame(1u, false);

#ifndef _WIN32
glEnable(GL_DEPTH_CLAMP);
glDisable(GL_DEPTH_CLAMP);
#endif
}

Expand Down

0 comments on commit 054249d

Please sign in to comment.