Minor addition to OpenGL code to prevent darker models

This commit is contained in:
Alessandro Ranellucci 2014-12-13 20:56:22 +01:00
parent 16945dad70
commit ac2b6de62b

View file

@ -594,6 +594,8 @@ sub Render {
}
}
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glFlush();
glFinish();
glEnable(GL_LIGHTING);
}
# draw objects