Skip to content
Snippets Groups Projects
Commit 6b630d24 authored by Oliver Behnke's avatar Oliver Behnke
Browse files

Remove comments and superfluous statements

* Previously used FYI only
* Defaults are better than explicit values
parent 7dd0a4f1
No related branches found
No related tags found
1 merge request!1Move macOS build to 64 bit
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment