From feae54a2d91c7123329bf9ed4c9c1dbbd64ae054 Mon Sep 17 00:00:00 2001 From: Mischanix Date: Wed, 1 Apr 2015 12:41:49 -0500 Subject: [PATCH] Request a 24-bit depth buffer --- tests/caveview/cave_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/caveview/cave_main.c b/tests/caveview/cave_main.c index 4670123..d345cf1 100644 --- a/tests/caveview/cave_main.c +++ b/tests/caveview/cave_main.c @@ -535,6 +535,7 @@ int SDL_main(int argc, char **argv) SDL_GL_SetAttribute(SDL_GL_RED_SIZE , 8); SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 8); SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE , 8); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_COMPATIBILITY); SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 3);