[Scummvm-tracker] [ScummVM :: Bugs] #11968: GRAPHICS: Fix GL crash on AmigaOS4 (at least)

ScummVM :: Bugs trac at scummvm.org
Sun Nov 22 18:50:24 UTC 2020


#11968: GRAPHICS: Fix GL crash on AmigaOS4 (at least)
--------------------+----------------------------
Reporter:  raziel-  |      Owner:  (none)
    Type:  defect   |     Status:  new
Priority:  normal   |  Component:  Port: AmigaOS4
Keywords:           |       Game:  Grim Fandango
--------------------+----------------------------
 ScummVM 2.3.0git (Nov 22 2020 10:09:58)
 Features compiled in: Vorbis FLAC MP3 RGB zLib MPEG2 Theora AAC A/52
 FreeType2 FriBiDi JPEG PNG cloud (servers, local) TinyGL OpenGL

 It looks like OpenGL calls are executed without context.

 Just before the crash:
 [OS4_GL_MakeCurrent] Called window=0x00000000 context=0x00000000
 [OS4_GL_DeleteContext] Called with context=0x6319D300
 [OS4_GL_DeleteContext] Found MiniGL context, clearing window binding
 [OS4_GL_GetProcAddress] Called for 'glGetString'
 [OS4_GL_GetProcAddress] Called for 'glGetIntegerv'

 So, the context was deleted right before the crash happened on
 glGetInteger.
 I think the issue might be in ScummVM, because SDL_GL_GetAttribute is
 supposed to get information about "the current context" (
 https://wiki.libsdl.org/SDL_GL_GetAttribute ), which doesn't exist (==
 nullptr) here:
 https://github.com/scummvm/scummvm/blob/master/backends/graphics3d/openglsdl
 /openglsdl-graphics3d.cpp#L182

 Please be aware that i´m not sure if this is the correct solution
 (especially because it addresses all platforms), it at least fixes all the
 crashes i get in numerous 3D games for me (Grim, EMI, Myst3, WME etc.)

 Please advise, thank you

 AmigaOS4 - PPC - SDL - BE
 gcc (adtools build 8.3.0) 8.3.0
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/11968>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list