Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
graphicsframework
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Oliver Behnke
graphicsframework
Commits
e2df209c
Commit
e2df209c
authored
16 years ago
by
Oliver Bock
Browse files
Options
Downloads
Patches
Plain Diff
Try fallback without multisampling
parent
2aa71b21
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/framework/WindowManager.cpp
+4
-5
4 additions, 5 deletions
src/framework/WindowManager.cpp
with
4 additions
and
5 deletions
src/framework/WindowManager.cpp
+
4
−
5
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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment