forked from bartvdbraak/blender
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.
This commit is contained in:
parent
7ee340c0b4
commit
f3b45eb76f
@ -259,12 +259,10 @@ void gpu_extensions_init(void)
|
|||||||
GG.dfdyfactors[0] = 1.0;
|
GG.dfdyfactors[0] = 1.0;
|
||||||
GG.dfdyfactors[1] = -1.0;
|
GG.dfdyfactors[1] = -1.0;
|
||||||
}
|
}
|
||||||
/*
|
else if (GG.device == GPU_DEVICE_INTEL && GG.os == GPU_OS_WIN) {
|
||||||
if ((strstr(vendor, "Intel"))) {
|
|
||||||
GG.dfdyfactors[0] = -1.0;
|
GG.dfdyfactors[0] = -1.0;
|
||||||
GG.dfdyfactors[1] = 1.0;
|
GG.dfdyfactors[1] = 1.0;
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
else {
|
else {
|
||||||
GG.dfdyfactors[0] = 1.0;
|
GG.dfdyfactors[0] = 1.0;
|
||||||
GG.dfdyfactors[1] = 1.0;
|
GG.dfdyfactors[1] = 1.0;
|
||||||
|
Loading…
Reference in New Issue
Block a user