From d7fccea2c6ad0092215c641be11f4665d34835dd Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 9 Dec 2021 16:32:15 -0500 Subject: [PATCH] Cull back faces --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index 3088e23..7780f9f 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -44,6 +44,8 @@ simpleengine::Game::Game(int w, int h, const std::string& window_name, const int void simpleengine::Game::enable_default_gl_options() const { glEnable(GL_DEPTH_TEST); + glEnable(GL_CULL_FACE); + glCullFace(GL_BACK); } void simpleengine::Game::enable_gl_option(GLenum option) const {