From 6b630d24749f201ac2e445ea0116f207220042b9 Mon Sep 17 00:00:00 2001 From: Oliver Behnke <oliver.behnke@aei.mpg.de> Date: Wed, 4 Mar 2020 11:16:50 +0100 Subject: [PATCH] Remove comments and superfluous statements * Previously used FYI only * Defaults are better than explicit values --- src/framework/WindowManager.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/framework/WindowManager.cpp b/src/framework/WindowManager.cpp index fb2ffe6..e300e57 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); -- GitLab