[Bf-blender-cvs] [c39d5a6c88d] blender2.8: Fix T57708: Crash on Eevee rendering with SSR enabled.
mano-wii
noreply at git.blender.org
Tue Nov 13 19:19:50 CET 2018
Commit: c39d5a6c88dcda9dff9626d7b059a98913da6fd2
Author: mano-wii
Date: Tue Nov 13 15:17:39 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBc39d5a6c88dcda9dff9626d7b059a98913da6fd2
Fix T57708: Crash on Eevee rendering with SSR enabled.
Intel does not like dead code.
The driver for `Intel HD Graphics 4000` crashes in these cases.
===================================================================
M source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl
===================================================================
diff --git a/source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl b/source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl
index a176f82b79b..04a1697f9df 100644
--- a/source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl
+++ b/source/blender/draw/engines/eevee/shaders/lightprobe_lib.glsl
@@ -211,9 +211,9 @@ void fallback_cubemap(
/* Specular probes */
vec3 spec_dir = get_specular_reflection_dominant_dir(N, V, roughnessSquared);
+#ifdef SSR_AO
vec4 rand = texelfetch_noise_tex(gl_FragCoord.xy);
vec3 bent_normal;
-#ifdef SSR_AO
float final_ao = occlusion_compute(N, viewPosition, 1.0, rand, bent_normal);
final_ao = specular_occlusion(dot(N, V), final_ao, roughness);
#else
More information about the Bf-blender-cvs
mailing list