Skip to content
Snippets Groups Projects
Commit e2df209c authored by Oliver Bock's avatar Oliver Bock
Browse files

Try fallback without multisampling

parent 2aa71b21
No related branches found
No related tags found
No related merge requests found
...@@ -150,8 +150,7 @@ bool WindowManager::initialize(const int width, const int height, const int fram ...@@ -150,8 +150,7 @@ bool WindowManager::initialize(const int width, const int height, const int fram
m_VideoModeFlags); m_VideoModeFlags);
if (m_DisplaySurface == NULL) { if (m_DisplaySurface == NULL) {
cerr << "Could not acquire rendering surface: " << SDL_GetError() << endl; cerr << "Could not acquire rendering surface (" << SDL_GetError() << "): will try fallback..." << endl;
return false;
} }
// check if we got acceleration // check if we got acceleration
...@@ -160,8 +159,8 @@ bool WindowManager::initialize(const int width, const int height, const int fram ...@@ -160,8 +159,8 @@ bool WindowManager::initialize(const int width, const int height, const int fram
cerr << "Could not ensure accelerated rendering surface. Assuming no acceleration..." << endl; cerr << "Could not ensure accelerated rendering surface. Assuming no acceleration..." << endl;
} }
if (!accelerated) { if (m_DisplaySurface == NULL || !accelerated) {
cerr << "Hardware acceleration isn't available! Disabling high quality features..." << endl; cerr << "Disabling high quality features..." << endl;
// disable features that demand acceleration // disable features that demand acceleration
// SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 0); // SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 0);
...@@ -179,7 +178,7 @@ bool WindowManager::initialize(const int width, const int height, const int fram ...@@ -179,7 +178,7 @@ bool WindowManager::initialize(const int width, const int height, const int fram
m_VideoModeFlags); m_VideoModeFlags);
if (m_DisplaySurface == NULL) { if (m_DisplaySurface == NULL) {
cerr << "Could not acquire rendering surface: " << SDL_GetError() << endl; cerr << "Could not acquire rendering surface (" << SDL_GetError() << "): giving up!" << endl;
return false; return false;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment