Opened 13 years ago

Closed 13 years ago

Last modified 6 years ago

#5799 closed defect (fixed)

SDL/OpenGL: Crash when switching renderer backend

Reported by: SF/simsaw Owned by: lordhoto
Priority: normal Component: Graphics
Version: Keywords:
Cc: Game:

Description

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 SF/simsaw, 13 years ago

Owner: set to lordhoto

comment:2 by lordhoto, 13 years ago

Summary: OpenGL: Crash when trying to set it as global graphics modeSDL/OpenGL: Crash when switching renderer backend

comment:3 by lordhoto, 13 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.

comment:4 by lordhoto, 13 years ago

The bug is "fixed" with a work around as of 0f6e231356305043bc7f66ae1cbe2c3a0607c68a.

comment:5 by lordhoto, 13 years ago

Resolution: fixed
Status: newclosed

comment:6 by digitall, 6 years ago

Component: Graphics
Note: See TracTickets for help on using tickets.