mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-26 03:30:46 +00:00
Disable spot lights on ATI cards, fixing the recent crashes with Catalyst 12.8.
git-svn-id: https://svn.eduke32.com/eduke32@3027 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2d3fe5083d
commit
aba1ce9e7f
1 changed files with 6 additions and 0 deletions
|
@ -1470,6 +1470,12 @@ int16_t polymer_addlight(_prlight* light)
|
||||||
if (lighti == PR_MAXLIGHTS)
|
if (lighti == PR_MAXLIGHTS)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
||||||
|
// Spot lights disabled on ATI cards because they cause crashes with
|
||||||
|
// Catalyst 12.8 drivers.
|
||||||
|
// See: http://forums.duke4.net/topic/5723-hrp-polymer-crash/
|
||||||
|
if (pr_ati_fboworkaround && light->radius)
|
||||||
|
return (-1);
|
||||||
|
|
||||||
Bmemcpy(&prlights[lighti], light, sizeof(_prlight));
|
Bmemcpy(&prlights[lighti], light, sizeof(_prlight));
|
||||||
|
|
||||||
if (light->radius) {
|
if (light->radius) {
|
||||||
|
|
Loading…
Reference in a new issue