summaryrefslogtreecommitdiff
path: root/src/platform_glfw.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform_glfw.c')
-rw-r--r--src/platform_glfw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/platform_glfw.c b/src/platform_glfw.c
index 92e29a2..9b71516 100644
--- a/src/platform_glfw.c
+++ b/src/platform_glfw.c
@@ -217,6 +217,9 @@ static void render_init_opengl(Window *restrict w, const u32 flags) {
// Make sure faces closest to the camera are drawn on-top of faces that are
// further away
+ ctx->Enable(GL_CULL_FACE);
+ ctx->CullFace(GL_BACK);
+
ctx->Enable(GL_DEPTH_TEST);
ctx->DepthFunc(GL_LESS);