[Bf-blender-cvs] [04daaee] master: Fix T44385 SSAO inverted with new Intel drivers.
Antony Riakiotakis
noreply at git.blender.org
Tue Apr 14 12:31:41 CEST 2015
Commit: 04daaee0fd0153783653df185286e34dd8684e6f
Author: Antony Riakiotakis
Date: Tue Apr 14 12:31:23 2015 +0200
Branches: master
https://developer.blender.org/rB04daaee0fd0153783653df185286e34dd8684e6f
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.
===================================================================
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 e8595ec..0d735d1 100644
--- a/source/blender/gpu/intern/gpu_extensions.c
+++ b/source/blender/gpu/intern/gpu_extensions.c
@@ -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;
}
More information about the Bf-blender-cvs
mailing list