From 769b0426a797cd7a55b001fd072162f570fa12c8 Mon Sep 17 00:00:00 2001 From: vladislavbelov Date: Sat, 17 Apr 2021 22:16:01 +0000 Subject: [PATCH] Removes unused debug render from ShadowMap. This was SVN commit r25284. --- source/renderer/ShadowMap.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/source/renderer/ShadowMap.cpp b/source/renderer/ShadowMap.cpp index 6d4f697c85..0e955edec3 100644 --- a/source/renderer/ShadowMap.cpp +++ b/source/renderer/ShadowMap.cpp @@ -714,38 +714,6 @@ void ShadowMap::RenderDebugBounds() shaderTech->EndPass(); -#if 0 - CMatrix3D InvTexTransform; - - m->TextureMatrix.GetInverse(InvTexTransform); - - // Render representative texture rectangle - glPushMatrix(); - glMultMatrixf(&InvTexTransform._11); - - glEnable(GL_BLEND); - glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); - glColor4ub(255,0,0,64); - glBegin(GL_QUADS); - glVertex3f(0.0, 0.0, 0.0); - glVertex3f(1.0, 0.0, 0.0); - glVertex3f(1.0, 1.0, 0.0); - glVertex3f(0.0, 1.0, 0.0); - glEnd(); - glDisable(GL_BLEND); - - glPolygonMode(GL_FRONT_AND_BACK, GL_LINE); - glColor3ub(255,0,0); - glBegin(GL_QUADS); - glVertex3f(0.0, 0.0, 0.0); - glVertex3f(1.0, 0.0, 0.0); - glVertex3f(1.0, 1.0, 0.0); - glVertex3f(0.0, 1.0, 0.0); - glEnd(); - glPolygonMode(GL_FRONT_AND_BACK, GL_FILL); - glPopMatrix(); -#endif - glEnable(GL_CULL_FACE); glDepthMask(1);