From 95f41dddd21da27235bf5db8fb419347ca38369b Mon Sep 17 00:00:00 2001 From: onelin Date: Wed, 3 Dec 2025 23:24:07 +0100 Subject: Enable face culling --- src/platform_glfw.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/platform_glfw.c') 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); -- cgit v1.3