summaryrefslogtreecommitdiff
path: root/game/terrain.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-30 17:08:59 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-30 17:08:59 +0000
commitd63f393b7bcabd7f6569b87a2dedbc8333c47554 (patch)
treea34b8f2cb32381f912f85d9cd6fb2c0dfd8a3e6f /game/terrain.cpp
parentEditNetworkOf constructor may have single param, should be explicit (diff)
downloadilt-d63f393b7bcabd7f6569b87a2dedbc8333c47554.tar.bz2
ilt-d63f393b7bcabd7f6569b87a2dedbc8333c47554.tar.xz
ilt-d63f393b7bcabd7f6569b87a2dedbc8333c47554.zip
Setting texture unit on bind
Always sets the target unit before binding, allows specifying the unit
Diffstat (limited to 'game/terrain.cpp')
-rw-r--r--game/terrain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/terrain.cpp b/game/terrain.cpp
index 10a6215..3a35c42 100644
--- a/game/terrain.cpp
+++ b/game/terrain.cpp
@@ -86,11 +86,11 @@ void
Terrain::render(const Shader & shader) const
{
shader.setModel(Location {}, Shader::Program::LandMass);
- grass->Bind();
+ grass->bind();
meshes.apply(&Mesh::Draw);
shader.setModel(Location {}, Shader::Program::Water);
shader.setUniform("waves", {waveCycle, 0, 0});
- water->Bind();
+ water->bind();
meshes.apply(&Mesh::Draw);
}