summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2024-03-01 15:31:02 +0100
committerMitya Selivanov <automainint@guattari.tech>2024-03-01 15:31:02 +0100
commit9e42ff6bbd4d096af0b78664c80d551efa6defa9 (patch)
tree04ab6db8c05784a56ad47f8b0c0eda48237899ac /source
parenta831aa9bab1e139ae7c88e633996ca0c3e44c427 (diff)
downloadsaw-9e42ff6bbd4d096af0b78664c80d551efa6defa9.zip
No need for the depth buffer
Diffstat (limited to 'source')
-rw-r--r--source/saw/main.c8
1 files changed, 1 insertions, 7 deletions
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
//