From 7e797980ac6823507e3016bc2d0c61b6be4f8bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9ophile=20Bastian?= Date: Tue, 6 Feb 2018 22:15:19 +0100 Subject: [PATCH] Enable depth buffering --- render/GlutRender.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/render/GlutRender.cpp b/render/GlutRender.cpp index 28a4d74..fdc4fae 100644 --- a/render/GlutRender.cpp +++ b/render/GlutRender.cpp @@ -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);