Commit e42af385 authored by Jan Möbius's avatar Jan Möbius

Pass throug env mapping node to TextureNode when not in env mapping mode

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@6010 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 116f0a83
......@@ -86,7 +86,8 @@ void EnvMapNode::enter(GLState& _state, unsigned int _drawmode)
glEnable(GL_TEXTURE_GEN_S);
glEnable(GL_TEXTURE_GEN_T);
glEnable(GL_TEXTURE_2D);
}
} else
TextureNode::enter( _state, _drawmode);
}
......@@ -101,7 +102,8 @@ void EnvMapNode::leave(GLState& _state, unsigned int _drawmode)
glDisable(GL_TEXTURE_GEN_S);
glDisable(GL_TEXTURE_GEN_T);
glDisable(GL_TEXTURE_2D);
}
} else
TextureNode::leave( _state, _drawmode);
}
void EnvMapNode::enterPick(GLState& /*_state*/ ,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment