From 37c71c15f2c9f90c9bda36d5f8a92c429c91d122 Mon Sep 17 00:00:00 2001 From: scrawl Date: Tue, 14 Mar 2017 04:57:36 +0100 Subject: [PATCH] Remove redundant state --- apps/openmw/mwrender/localmap.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/openmw/mwrender/localmap.cpp b/apps/openmw/mwrender/localmap.cpp index 0e854d5dc..0f77efafe 100644 --- a/apps/openmw/mwrender/localmap.cpp +++ b/apps/openmw/mwrender/localmap.cpp @@ -174,9 +174,7 @@ osg::ref_ptr LocalMap::createOrthographicCamera(float x, float y, f camera->setNodeMask(Mask_RenderToTexture); osg::ref_ptr stateset = new osg::StateSet; - stateset->setMode(GL_LIGHTING, osg::StateAttribute::ON); - stateset->setMode(GL_NORMALIZE, osg::StateAttribute::ON); - stateset->setMode(GL_CULL_FACE, osg::StateAttribute::ON); + // assign large value to effectively turn off fog // shaders don't respect glDisable(GL_FOG) osg::ref_ptr fog (new osg::Fog);