From 62cb72091d8da93a3ab2e1ccff5517250741f82e Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Wed, 5 Feb 2025 21:47:35 +1100 Subject: [PATCH] Fix wrong glEnable call --- samples/depth_funcs_alpha_testing/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/depth_funcs_alpha_testing/main.c b/samples/depth_funcs_alpha_testing/main.c index 517d6a0..257b093 100644 --- a/samples/depth_funcs_alpha_testing/main.c +++ b/samples/depth_funcs_alpha_testing/main.c @@ -88,7 +88,7 @@ void DrawGLScene() glLoadIdentity(); glTranslated(-1 , -1, -5); glDepthFunc(GL_LESS); - glEnable(GL_DEPTH_FUNC); + glEnable(GL_DEPTH_TEST); for (int i = 0; i < 5; i++) { glTranslated(0.5, 0, -0.2);