Enable depth buffering

This commit is contained in:
Théophile Bastian 2018-02-06 22:15:19 +01:00
parent ae95da9cd8
commit 7e797980ac

View file

@ -17,7 +17,7 @@ void GlutRender::init(int* argc, char** argv,
int wid, int hei, const char* win_name)
{
glutInit(argc, argv);
glutInitDisplayMode(GLUT_DOUBLE);
glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
glutInitWindowSize(wid, hei);
glutCreateWindow(win_name);