Skip to content

Commit d18a9c9

Browse files
committed
[GL3+] Do not force-enable Depth Clamp
RenderSystem::setClipPlanes is a legacy function that no one is using. However setClipPlanes would get called because mClipPlanesDirty starts as true; which causes a lot of problems (e.g. see gazebosim/gz-rendering#365) Proper depth clamp support was added in Ogre 2.3 Not using depth clamp is consistent with all other RenderSystems anyway
1 parent 2d049a5 commit d18a9c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

RenderSystems/GL3Plus/src/OgreGL3PlusRenderSystem.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -3701,7 +3701,6 @@ namespace Ogre {
37013701

37023702
void GL3PlusRenderSystem::setClipPlanesImpl(const Ogre::PlaneList& planeList)
37033703
{
3704-
OGRE_CHECK_GL_ERROR(glEnable(GL_DEPTH_CLAMP));
37053704
}
37063705

37073706
void GL3PlusRenderSystem::registerThread()

0 commit comments

Comments
 (0)