From 7abd878e93aca9b9b7c772f370fffc2c3b0b6ba4 Mon Sep 17 00:00:00 2001 From: T_chan Date: Tue, 25 Jan 2022 20:47:40 +0000 Subject: [PATCH] AS-IS, depth_funcs_ortho only displays 1 red quad. With the fix, the 2 other quads (blue, green) become visible again --- samples/depth_funcs_ortho/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/depth_funcs_ortho/main.c b/samples/depth_funcs_ortho/main.c index ccd88c6..c2703f5 100644 --- a/samples/depth_funcs_ortho/main.c +++ b/samples/depth_funcs_ortho/main.c @@ -82,9 +82,9 @@ void DrawGLScene() glDepthFunc(GL_LEQUAL); //RED over GREEN over BLUE DrawSquare(100.0, 1.0, 0.0, 0.0, 0.0); - glTranslatef(50, 0, 0.03f); + glTranslatef(50, 0, -0.03f); DrawSquare(100, 0, 1, 0, 0); - glTranslatef(50, 0, 0.03f); + glTranslatef(50, 0, -0.03f); DrawSquare(100, 0, 0, 1, 0); // swap buffers to display, since we're double buffered.