diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2015-03-31 18:37:09 +0300 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2015-03-31 18:37:17 +0300 |
commit | f3b45eb76fe39a908d485bc8fdd67bbd5369a483 (patch) | |
tree | 10f2aa5edcff55e20a31e57635a2b3f4e6c8ba26 /source/blender/gpu | |
parent | 7ee340c0b43c89c157264bb723b01dff5c6005b4 (diff) |
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.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r-- | source/blender/gpu/intern/gpu_extensions.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index c602fdad18e..363e19908e5 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -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; |