Commit 4139325b authored by Jan Möbius's avatar Jan Möbius
Browse files

Don't use deprecated calls in coreprofile

parent be5e9827
......@@ -899,8 +899,10 @@ getRenderObjects(ACG::IRenderer* _renderer, ACG::GLState& _state , const ACG::S
// init base render object
ACG::RenderObject ro;
_state.enable(GL_COLOR_MATERIAL);
_state.enable(GL_LIGHTING);
if (compatibilityProfile( ) ) {
_state.enable(GL_COLOR_MATERIAL);
_state.enable(GL_LIGHTING);
}
ro.initFromState(&_state);
ro.setMaterial(_mat);
......
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