Fix T43987 ambient occlusion wrong for Intel cards on windows (tested on

HD3000 and HD4000 cards so far).

Similar issue to Radeon 3xxx series but Intels need the opposite factors
for dfdy.
This commit is contained in:
Antony Riakiotakis 2015-03-31 17:37:09 +02:00
parent 7ee340c0b4
commit f3b45eb76f

@ -259,12 +259,10 @@ void gpu_extensions_init(void)
GG.dfdyfactors[0] = 1.0;
GG.dfdyfactors[1] = -1.0;
}
/*
if ((strstr(vendor, "Intel"))) {
else if (GG.device == GPU_DEVICE_INTEL && GG.os == GPU_OS_WIN) {
GG.dfdyfactors[0] = -1.0;
GG.dfdyfactors[1] = 1.0;
}
*/
else {
GG.dfdyfactors[0] = 1.0;
GG.dfdyfactors[1] = 1.0;