From 9e42ff6bbd4d096af0b78664c80d551efa6defa9 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Fri, 1 Mar 2024 15:31:02 +0100 Subject: No need for the depth buffer --- source/saw/main.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'source') diff --git a/source/saw/main.c b/source/saw/main.c index 8d26d27..8b29fd4 100644 --- a/source/saw/main.c +++ b/source/saw/main.c @@ -3322,13 +3322,7 @@ static void saw_frame(void) { glViewport(0, 0, frame_width, frame_height); glClearColor(.11f, .09f, .08f, 1.f); -#ifdef SOKOL_GLCORE33 - glClearDepth(1.); -#else - glClearDepthf(1.f); -#endif - glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT | - GL_STENCIL_BUFFER_BIT); + glClear(GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); // Process input // -- cgit v1.2.3