added experimental additional check for shadow active

This commit is contained in:
Pawel Kolodziejski 2009-06-18 19:48:27 +00:00
parent 89aca4882d
commit a8a6cc3cfa
2 changed files with 2 additions and 2 deletions

View file

@ -238,7 +238,7 @@ void GfxOpenGL::startActorDraw(Graphics::Vector3d pos, float yaw, float pitch, f
glEnable(GL_TEXTURE_2D);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
if (_currentShadowArray) {
if (_currentShadowArray && _currentShadowArray->active) {
SectorListType::iterator i = _currentShadowArray->planeList.begin();
Sector *shadowSector = *i;
glEnable(GL_POLYGON_OFFSET_FILL);