diff options
| author | onelin <oscar@nelin.dk> | 2025-12-03 22:24:07 +0000 |
|---|---|---|
| committer | onelin <oscar@nelin.dk> | 2025-12-18 21:14:21 +0000 |
| commit | 95f41dddd21da27235bf5db8fb419347ca38369b (patch) | |
| tree | 0f593dfdcb90ebc3539d3ef242222093e88e6412 /src/platform_glfw.c | |
| parent | 38693905261fc84d60ef9993aa9bd3cd837a5865 (diff) | |
Enable face culling
Diffstat (limited to 'src/platform_glfw.c')
| -rw-r--r-- | src/platform_glfw.c | 3 |
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); |
