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:
Antonis Ryakiotakis 2015-03-31 17:37:09 +02:00
parent 7ee340c0b4
commit f3b45eb76f
Notes: blender-bot 2023-02-14 09:22:41 +01:00
Referenced by issue #43987, 2.74 Release Candidate OpenGL AO
1 changed files with 1 additions and 3 deletions

View File

@ -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;