From aba1ce9e7fd408925d2cc0a14d9a544df450d1f1 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 24 Sep 2012 21:09:37 +0000 Subject: [PATCH] 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 --- polymer/eduke32/build/src/polymer.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/polymer/eduke32/build/src/polymer.c b/polymer/eduke32/build/src/polymer.c index e907cc037..a3e9fd2c7 100644 --- a/polymer/eduke32/build/src/polymer.c +++ b/polymer/eduke32/build/src/polymer.c @@ -1470,6 +1470,12 @@ int16_t polymer_addlight(_prlight* light) if (lighti == PR_MAXLIGHTS) 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)); if (light->radius) {