Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Oliver Behnke
graphicsframework
Commits
e2df209c
Commit
e2df209c
authored
Mar 28, 2009
by
Oliver Bock
Browse files
Try fallback without multisampling
parent
2aa71b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/framework/WindowManager.cpp
View file @
e2df209c
...
...
@@ -150,8 +150,7 @@ bool WindowManager::initialize(const int width, const int height, const int fram
m_VideoModeFlags
);
if
(
m_DisplaySurface
==
NULL
)
{
cerr
<<
"Could not acquire rendering surface: "
<<
SDL_GetError
()
<<
endl
;
return
false
;
cerr
<<
"Could not acquire rendering surface ("
<<
SDL_GetError
()
<<
"): will try fallback..."
<<
endl
;
}
// check if we got acceleration
...
...
@@ -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
;
}
if
(
!
accelerated
)
{
cerr
<<
"
Hardware acceleration isn't available!
Disabling high quality features..."
<<
endl
;
if
(
m_DisplaySurface
==
NULL
||
!
accelerated
)
{
cerr
<<
"Disabling high quality features..."
<<
endl
;
// disable features that demand acceleration
// SDL_GL_SetAttribute(SDL_GL_ACCELERATED_VISUAL, 0);
...
...
@@ -179,7 +178,7 @@ bool WindowManager::initialize(const int width, const int height, const int fram
m_VideoModeFlags
);
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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment