diff --git a/src/framework/WindowManager.cpp b/src/framework/WindowManager.cpp index fb2ffe632d7b1c855889b2b6e36348bc3f6a989a..e300e572c90e8f3f00376e48422bc705e905d13a 100644 --- a/src/framework/WindowManager.cpp +++ b/src/framework/WindowManager.cpp @@ -110,27 +110,15 @@ bool WindowManager::initialize(const int width, const int height, const int fram // } // minimum requirements - SDL_GL_SetAttribute(SDL_GL_RED_SIZE, 1); - SDL_GL_SetAttribute(SDL_GL_GREEN_SIZE, 1); - SDL_GL_SetAttribute(SDL_GL_BLUE_SIZE, 1); SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetSwapInterval(1); - // desired requirement for high quality mode - //FIXME: commented out right now as it interferes with the FSAA attributes below!) -// SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 1); - if(m_BoincAdapter->graphicsQualitySetting() == BOINCClientAdapter::HighGraphicsQualitySetting) { // enable opt-in quality feature FSAA (4x) SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 1); } - // unused requirements - //SDL_GL_SetAttribute(SDL_GL_ALPHA_SIZE, 8); - //SDL_GL_SetAttribute(SDL_GL_BUFFER_SIZE, 32); - //SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); - // we always start in windowed mode (starting in fullscreen fails with high CPU load!) m_CurrentWidth = m_WindowedWidth; m_CurrentHeight = m_WindowedHeight; @@ -158,7 +146,6 @@ bool WindowManager::initialize(const int width, const int height, const int fram cerr << "Disabling high quality features..." << endl; // disable features that demand acceleration -// SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 0); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0); SDL_GL_SetAttribute(SDL_GL_MULTISAMPLEBUFFERS, 0);