A fix for crashes after a level change on some graphics drivers.
Fixed
- Crash after a level change, a new versus match or a return to the menu on some graphics
drivers, e.g. Windows in Parallels Desktop on a Mac ("A critical graphics error has occurred")
(#2,
#3). The game restarts itself for every level,
creating its graphics device again; two caches of the port's (vertex layouts, used for movies and
screen-space drawing) were never released, so they kept the old device alive and were handed to
the new one. Most drivers tolerate that; stricter ones end the game. They are now released with
their device.
Added
- The log warns when a released graphics device is still in use (
Graphics device still referenced). - For contributors:
SWROTS_REBOOT_EVERY=<seconds>restarts the game on a timer, to test restarts
(contributing).
All releases: changelog