From 3dd8f3db61e25121b7fbc1bd43bca522654d117b Mon Sep 17 00:00:00 2001 From: lisyarus Date: Sun, 30 Aug 2020 21:21:54 +0300 Subject: [PATCH] Explicitly request 24-bit depth buffer --- libs/app/source/app.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/app/source/app.cpp b/libs/app/source/app.cpp index d75c0804..8d052c00 100644 --- a/libs/app/source/app.cpp +++ b/libs/app/source/app.cpp @@ -66,6 +66,7 @@ namespace psemek::app SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);