[Scummvm-tracker] [ScummVM :: Bugs] #13246: AGS - Mage's Initiation - crashes while entering the Palace on Lone Island

ScummVM :: Bugs trac at scummvm.org
Mon Feb 7 20:39:23 UTC 2022


#13246: AGS - Mage's Initiation - crashes while entering the Palace on Lone Island
--------------------------+--------------------------
Reporter:  menschel       |       Owner:  (none)
    Type:  defect         |      Status:  new
Priority:  normal         |   Component:  Engine: AGS
 Version:                 |  Resolution:
Keywords:  mage-fallback  |        Game:
--------------------------+--------------------------
Comment (by criezy):

 I have now checked how it behaves in the debugger with the standalone AGS
 executable. And I found that:
  - It has the same issue with a light level of -26335 in the data.
  - But by default it uses an accelerated driver (OGL in my case on macOS,
 and probably D3D9 on Windows). And that driver has a sanity check on the
 light level in `OGLGraphicsDriver::_renderSprite` to not do light if the
 light level is negative.
  - If we force the use of the Software driver then it crashes in the same
 way as ScummVM.

 So this looks like a bug in the game data file that is not noticeable with
 the original executable due to it being ignored with the default driver
 used (and nobody tried using the software renderer since it has little
 benefit over the accelerated ones).

 I think the way to go will be to add a sanity check in the software
 rendering path to ignore negative light levels.
-- 
Ticket URL: <https://bugs.scummvm.org/ticket/13246#comment:6>
ScummVM :: Bugs <https://bugs.scummvm.org>
ScummVM


More information about the Scummvm-tracker mailing list