forked from mirrors/0ad
Fixes debug drawing of a null shadow texture introduced in 36107cb7e1, appeared after abc3190c03.
Reported By: nwtour This was SVN commit r26173.
This commit is contained in:
@@ -775,6 +775,9 @@ void ShadowMap::RenderDebugBounds()
|
||||
|
||||
void ShadowMap::RenderDebugTexture()
|
||||
{
|
||||
if (!m->Texture)
|
||||
return;
|
||||
|
||||
glDepthMask(0);
|
||||
|
||||
glDisable(GL_DEPTH_TEST);
|
||||
|
||||
Reference in New Issue
Block a user