Fix T44385 SSAO inverted with new Intel drivers.

Intel has decided to fix this for newer devices and drivers only, so we
can't really avoid keeping a list of buggy drivers here.
This commit is contained in:
Antonis Ryakiotakis 2015-04-14 12:31:23 +02:00
parent ed40d5eaa7
commit 04daaee0fd
Notes: blender-bot 2023-02-14 11:21:43 +01:00
Referenced by issue #44385, SSAO is inverted in latest buildbot (Intel GPU)
1 changed files with 2 additions and 1 deletions

View File

@ -263,7 +263,8 @@ void gpu_extensions_init(void)
GG.dfdyfactors[0] = 1.0;
GG.dfdyfactors[1] = -1.0;
}
else if (GG.device == GPU_DEVICE_INTEL && GG.os == GPU_OS_WIN) {
else if (GG.device == GPU_DEVICE_INTEL && GG.os == GPU_OS_WIN &&
(strstr(version, "4.0.0 - Build 9.18.10.3165"))) {
GG.dfdyfactors[0] = -1.0;
GG.dfdyfactors[1] = 1.0;
}