[Bf-blender-cvs] [3da5b03b8ac] blender2.8: Eevee: Fix crash when using refraction with alpha clip blend mode

Clément Foucault noreply at git.blender.org
Mon Sep 17 15:08:27 CEST 2018


Commit: 3da5b03b8ac1ec1392631512e79fcc5d4fdfd916
Author: Clément Foucault
Date:   Mon Sep 17 14:46:22 2018 +0200
Branches: blender2.8
https://developer.blender.org/rB3da5b03b8ac1ec1392631512e79fcc5d4fdfd916

Eevee: Fix crash when using refraction with alpha clip blend mode

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

M	source/blender/draw/engines/eevee/eevee_materials.c

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

diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c
index 9ef64477aca..6ec20b2d7c5 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -404,7 +404,7 @@ static void add_standard_uniforms(
 		DRW_shgroup_uniform_texture_ref(shgrp, "probePlanars", &vedata->txl->planar_pool);
 		DRW_shgroup_uniform_int(shgrp, "outputSsrId", ssr_id, 1);
 	}
-	if (use_refract || use_ssrefraction) {
+	if (use_refract && use_ssrefraction) {
 		BLI_assert(refract_depth != NULL);
 		DRW_shgroup_uniform_float(shgrp, "refractionDepth", refract_depth, 1);
 		DRW_shgroup_uniform_texture_ref(shgrp, "colorBuffer", &vedata->txl->refract_color);



More information about the Bf-blender-cvs mailing list