[Bf-blender-cvs] [ef0e06d7644] master: Fix T65386 Eevee: Crash after baking indirect lights or cubemap

Clément Foucault noreply at git.blender.org
Tue Jul 23 13:21:09 CEST 2019


Commit: ef0e06d7644727883c250975133264b046930b70
Author: Clément Foucault
Date:   Tue Jul 23 13:20:00 2019 +0200
Branches: master
https://developer.blender.org/rBef0e06d7644727883c250975133264b046930b70

Fix T65386 Eevee: Crash after baking indirect lights or cubemap

I'm not sure this fixes the root of the problem. The file from the ticket
seems to have been corrupted in some way.

We MIGHT want this in 2.80.

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

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

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

diff --git a/source/blender/draw/engines/eevee/eevee_lightcache.c b/source/blender/draw/engines/eevee/eevee_lightcache.c
index 3977fd160fc..c82a112b343 100644
--- a/source/blender/draw/engines/eevee/eevee_lightcache.c
+++ b/source/blender/draw/engines/eevee/eevee_lightcache.c
@@ -266,7 +266,8 @@ static bool EEVEE_lightcache_validate(const LightCache *light_cache,
         (irr_size[2] == light_cache->grid_tx.tex_size[2]) && (grid_len == light_cache->grid_len)) {
       int mip_len = (int)(floorf(log2f(cube_res)) - MIN_CUBE_LOD_LEVEL);
       if ((cube_res == light_cache->cube_tx.tex_size[0]) &&
-          (cube_len == light_cache->cube_tx.tex_size[2]) && (mip_len == light_cache->mips_len)) {
+          (cube_len == light_cache->cube_tx.tex_size[2]) && (cube_len == light_cache->cube_len) &&
+          (mip_len == light_cache->mips_len)) {
         return true;
       }
     }



More information about the Bf-blender-cvs mailing list