From f3b45eb76fe39a908d485bc8fdd67bbd5369a483 Mon Sep 17 00:00:00 2001 From: Antony Riakiotakis Date: Tue, 31 Mar 2015 17:37:09 +0200 Subject: [PATCH] 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. --- source/blender/gpu/intern/gpu_extensions.c | 4 +--- 1 file changed, 1 insertion(+), 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;