Eevee: Fix crash when using refraction with alpha clip blend mode
This commit is contained in:
parent
68f139db0d
commit
3da5b03b8a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue