From 2905512e18aef3881632263bdad6e2f7436effa0 Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Sat, 17 Oct 2020 15:13:16 -0500 Subject: [PATCH] added face culling --- src/sim.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sim.c b/src/sim.c index 7aeae0f..39b48b2 100644 --- a/src/sim.c +++ b/src/sim.c @@ -57,7 +57,8 @@ init_glfw() { glfwSetFramebufferSizeCallback(window, glfw_resize_handler); glEnable(GL_CULL_FACE); - glCullFace(GL_CCW); + glFrontFace(GL_CCW); + glCullFace(GL_BACK); } internal GLuint -- 2.25.1