From 800bd511f6048ff44cde28a5c4194feaa8f07636 Mon Sep 17 00:00:00 2001 From: scrawl Date: Fri, 12 Jun 2015 00:12:12 +0200 Subject: [PATCH] Set a sensible value for SDL_GL_DEPTH_SIZE (Bug #2649) --- apps/openmw/engine.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index eda33637b7..aa00f5e9c4 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -342,6 +342,12 @@ void OMW::Engine::createWindow(Settings::Manager& settings) SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, settings.getBool("minimize on focus loss", "Video") ? "1" : "0"); + 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_ALPHA_SIZE, 0); + SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); + if (antialiasing > 0) { if (SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1) != 0)