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);