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 10, 2023
1 parent 7750423 commit 83a4116
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 83a4116

Please sign in to comment.