Skip to content

Commit

Permalink
Preload classic water texture
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Sep 11, 2023
1 parent 47aa838 commit 0280666
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/terrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,12 @@ void loadWaterTextures(int maxTerrainTextureSize)
ASSERT(waterTexturesHigh.tex_sm != nullptr, "Failed to load water specular maps");
}
}
else if (terrainShaderQuality == TerrainShaderQuality::CLASSIC)
{
// preload classic water texture
auto pWaterTexClassic = getWaterClassicTexture();
ASSERT_OR_RETURN(, pWaterTexClassic != nullptr, "Failed to load classic water texture?");
}
else
{
ASSERT_OR_RETURN(, false, "Unexpected terrainShaderQuality: %u", static_cast<unsigned>(terrainShaderQuality));
Expand Down

0 comments on commit 0280666

Please sign in to comment.