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:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user