Menu

#5799 SDL/OpenGL: Crash when switching renderer backend

closed-fixed
Graphics (902)
5
2011-08-11
2011-07-15
simsaw
No

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"

Discussion

  • simsaw

    simsaw - 2011-07-15
    • assigned_to: nobody --> lordhoto
     
  • Johannes Schickel

    • summary: OpenGL: Crash when trying to set it as global graphics mode --> SDL/OpenGL: Crash when switching renderer backend
     
  • Johannes Schickel

    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.

     
  • Johannes Schickel

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

     
  • Johannes Schickel

    • status: open --> closed-fixed