[Bf-blender-cvs] [f875e396ce2] blender2.8: Eevee: Fix T52593
Clément Foucault
noreply at git.blender.org
Mon Sep 11 23:18:04 CEST 2017
Commit: f875e396ce2bea2859501841d5ec90e6100af2ad
Author: Clément Foucault
Date: Mon Sep 11 23:17:33 2017 +0200
Branches: blender2.8
https://developer.blender.org/rBf875e396ce2bea2859501841d5ec90e6100af2ad
Eevee: Fix T52593
Use a placeholder texture to remove problems with sampler with no texture bound to it.
===================================================================
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 8f2d2bc9ad7..59f29cdef13 100644
--- a/source/blender/draw/engines/eevee/eevee_materials.c
+++ b/source/blender/draw/engines/eevee/eevee_materials.c
@@ -411,6 +411,10 @@ static void add_standard_uniforms(
DRW_shgroup_uniform_buffer(shgrp, "horizonBuffer", &vedata->txl->gtao_horizons);
DRW_shgroup_uniform_ivec2(shgrp, "aoHorizonTexSize", (int *)vedata->stl->effects->ao_texsize, 1);
}
+ else {
+ /* Use shadow_pool as fallback to avoid sampling problem on certain platform, see: T52593 */
+ DRW_shgroup_uniform_buffer(shgrp, "horizonBuffer", &sldata->shadow_pool);
+ }
}
static void create_default_shader(int options)
More information about the Bf-blender-cvs
mailing list