Ensure consistent state in the world texture before rendering.

This commit is contained in:
Paul Chote
2023-10-23 08:58:27 +01:00
committed by Gustas
parent 43ddee5d30
commit c3ff5d954a

View File

@@ -333,6 +333,7 @@ namespace OpenRA.Graphics
// Make a copy of the world texture to avoid reading and writing on the same buffer
Game.Renderer.Flush();
postProcessTexture.SetDataFromReadBuffer(rect);
Game.Renderer.Flush();
pass.Draw(this, postProcessTexture);
}
}