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:
helixhorned 2012-09-24 21:09:37 +00:00
parent 2d3fe5083d
commit aba1ce9e7f

View file

@ -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) {