DEADSOFTWARE

Game: Fixed missing check for the availability of stencil buffer
authorDmitry D. Chernov <blackdoomer@yandex.ru>
Thu, 23 Mar 2023 18:02:48 +0000 (04:02 +1000)
committerDmitry D. Chernov <blackdoomer@yandex.ru>
Thu, 23 Mar 2023 18:02:48 +0000 (04:02 +1000)
commite84299fd3f1bf3f58e7aeddc017d2b6dc835f676
treefd3e8cb13d36be61bac6b709f42cfcd732d80447
parentb1e7f99d9eea1711acf7471e9827500acccc5820
Game: Fixed missing check for the availability of stencil buffer
This fixes experimental dynamic light effects ('light_enabled 1' and 'light_player_halo') which were broken by 0e101bd452c40da601236aaa2dd4106be47ddce1.
It's worth noting that they even work on my laptop's integrated video if I just set 'gwin_has_stencil' to True, even though the driver says it doesn't support stencils.
The discrete GPU on the same laptop reports it correctly.
src/game/sdl/g_system.pas
src/game/sdl2/g_system.pas