From 274724923c185efa315a5eb074b56b751d15819d Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Fri, 15 Feb 2008 01:20:25 +0000 Subject: [PATCH] default z-buffer >= 16 bits git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1650 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/src/main.cpp b/source/src/main.cpp index d7052a50..c1929f4e 100644 --- a/source/src/main.cpp +++ b/source/src/main.cpp @@ -203,6 +203,7 @@ void setupscreen(int &usedcolorbits, int &useddepthbits, int &usedfsaa) 0 /* try disabling everything */ }; int config = 0; + if(!depthbits) SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 16); if(!fsaa) { SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 0);