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.
This commit is contained in:
parent
84c11e8644
commit
ef0e06d764
Notes:
blender-bot
2023-02-14 11:07:28 +01:00
Referenced by issue #65386, Blender crashes after baking indirect lights or cubemap on eevee
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue