Eevee: Fix lightcache not working for small caches
authorClément Foucault <foucault.clem@gmail.com>
Tue, 23 Oct 2018 16:04:29 +0000 (18:04 +0200)
committerClément Foucault <foucault.clem@gmail.com>
Tue, 23 Oct 2018 16:04:45 +0000 (18:04 +0200)
commited7f6b511f817d9b93eecb07955a30eb3a5afb87
treecdcdbe3cbc99e017c092bfe6cd446ac033ce763e
parent8e8d1cab6f605d738911bf2172cbe6e04870da9f
Eevee: Fix lightcache not working for small caches

Was caused by a threading issue. The lightcache was free before the endjob
function pass it to the scene.

Also fix cache reuse if size matches.
source/blender/draw/engines/eevee/eevee_lightcache.c