mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 17:43:41 +00:00
Reverts some changes: Atlas now won't recompute the water foam on terrain change, thus reducing the lag until I properly optimize it. refs #1743
This was SVN commit r13120.
This commit is contained in:
@@ -652,7 +652,7 @@ bool TerrainRenderer::RenderFancyWater(const CShaderDefines& context, ShadowMap*
|
||||
WaterMgr->updateQuality();
|
||||
|
||||
// If we're using fancy water, make sure its shader is loaded
|
||||
if (!m->fancyWaterShader || (WaterMgr->m_NeedsReloading && (!g_AtlasGameLoop->running || !WaterMgr->m_TerrainChangeThisTurn) ))
|
||||
if ((!m->fancyWaterShader || WaterMgr->m_NeedsReloading) && !g_AtlasGameLoop->running)
|
||||
{
|
||||
if(WaterMgr->m_WaterNormal)
|
||||
defines.Add("USE_NORMALS","1");
|
||||
|
||||
Reference in New Issue
Block a user