Fix error in rBb9e1cc931ee9

Bad copy paste...
This commit is contained in:
2021-03-02 14:11:16 +01:00
parent b9e1cc931e
commit 8d6a79ffc2

View File

@@ -196,7 +196,7 @@ static uint eevee_lightcache_memsize_get(LightCache *lcache)
return size;
}
static bool eevee_lightcache_version_check(LightCache *lcache)
static bool eevee_lightcache_version_check(const LightCache *lcache)
{
switch (lcache->type) {
case LIGHTCACHE_TYPE_STATIC:
@@ -313,7 +313,7 @@ static bool EEVEE_lightcache_validate(const LightCache *light_cache,
const int grid_len,
const int irr_size[3])
{
if (!eevee_lightcache_version_check(lbake->lcache)) {
if (!eevee_lightcache_version_check(light_cache)) {
return false;
}