Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDL: Implement a hellish workaround to fix bug #3368143.
The bug in question is "SDL/OpenGL: Crash when switching renderer backend". To fix it I added a stupid graphics state copying to the SDL backend, in case the graphics manager is switched. The implementation of this is considered a pure workaround, no one should ever do it like this in reality... I just want to die when looking at this... Not sure why I actually committed it. Anyway it at least makes the OpenGL backend testable for those who do not want to fiddle with the config file directly.
- Loading branch information
Johannes Schickel
committed
Aug 11, 2011
1 parent
2739d8f
commit 0f6e231
Showing
2 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0f6e231
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure if the inclusion of 'cursorman.cpp' rather than 'cursorman.h' was intentionally part of fixing the problem or not, but it broke compilation under MSVC, since the CursorManager.cpp file is now present in multiple .obj files, and causes the linking to fail. For now, I've changed the include to be cursorman.h, which at least fixes the error.
0f6e231
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No that was one of the most stupid typos I ever made ;-P. Thanks for fixing this.