Browse Source

Bugfix: Depth clamping is no longer incorrectly enabled when using OpenGL

BearishSun 8 years ago
parent
commit
631d3a29c2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/BansheeGLRenderAPI/BsGLRenderAPI.cpp

+ 1 - 1
Source/BansheeGLRenderAPI/BsGLRenderAPI.cpp

@@ -1828,7 +1828,7 @@ namespace bs { namespace ct
 
 	void GLRenderAPI::setDepthClipEnable(bool enable)
 	{
-		if (enable)
+		if (!enable) // If clipping disabled, clamp is enabled
 		{
 			glEnable(GL_DEPTH_CLAMP);
 			BS_CHECK_GL_ERROR();