[Bf-blender-cvs] [f3b45eb] master: Fix T43987 ambient occlusion wrong for Intel cards on windows (tested on HD3000 and HD4000 cards so far).

Antony Riakiotakis noreply at git.blender.org
Tue Mar 31 17:37:41 CEST 2015


Commit: f3b45eb76fe39a908d485bc8fdd67bbd5369a483
Author: Antony Riakiotakis
Date:   Tue Mar 31 17:37:09 2015 +0200
Branches: master
https://developer.blender.org/rBf3b45eb76fe39a908d485bc8fdd67bbd5369a483

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.

===================================================================

M	source/blender/gpu/intern/gpu_extensions.c

===================================================================

diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c
index c602fda..363e199 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;




More information about the Bf-blender-cvs mailing list