Fix: EEVEE: Invalid error in console from material preview

This was visible on apple hardware as it seems the data
from the SSBOs are not cleared.


Candidate for backporting to 4.2
This commit is contained in:
Clément Foucault
2024-08-05 17:17:04 +02:00
parent 77be435eee
commit 9c622d3b2b

View File

@@ -615,7 +615,7 @@ void ShadowModule::init()
}
/* Read end of the swap-chain to avoid stall. */
{
if (inst_.is_viewport()) {
if (inst_.sampling.finished_viewport()) {
/* Swap enough to read the last one. */
for (int i = 0; i < statistics_buf_.size(); i++) {