Opened 12 years ago
Closed 12 years ago
Last modified 5 years ago
#5799 closed defect (fixed)
SDL/OpenGL: Crash when switching renderer backend
|Reported by:||SF/simsaw||Owned by:||lordhoto|
Whenever I select OpenGL in the global options of ScummVM and confirm by clicking OK, ScummVM exits/crashs. This happens no matter what OpenGL mode I select. It works fine when set up for single games via "Edit Game" though.
I tested with the latest Daily Build for Win32 dated July 13, 2011.
I would have attached a log file, but there is nothing to get out of it. The last line simply is: "switching to OpenGL graphics"
Ticket imported from: #3368143. Ticket imported from: bugs/5799.
Change History (6)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
|Summary:||OpenGL: Crash when trying to set it as global graphics mode → SDL/OpenGL: Crash when switching renderer backend|
comment:3 by , 12 years ago
comment:4 by , 12 years ago
The bug is "fixed" with a work around as of 0f6e231356305043bc7f66ae1cbe2c3a0607c68a.
comment:5 by , 12 years ago
|Status:||new → closed|
comment:6 by , 5 years ago
It should crash when switching from an OpenGL mode to an SDL mode too.
The problem here is that the graphics state (mode setup etc.) is stored inside the active graphics manager in the SDL backend. Since switching from OpenGL to SDL or from SDL to OpenGL results in the graphics manager destroyed the new graphics manager has no idea what resolution to set up etc. The client code validly does not pass this information again, since it should all be handled inside the backend.
This bug has been known for a while now, but thanks for reporting it never the less, even though the OpenGL output is not officially supported yet.