diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-30 17:08:59 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-30 17:08:59 +0000 |
commit | d63f393b7bcabd7f6569b87a2dedbc8333c47554 (patch) | |
tree | a34b8f2cb32381f912f85d9cd6fb2c0dfd8a3e6f /game/network/network.impl.h | |
parent | EditNetworkOf constructor may have single param, should be explicit (diff) | |
download | ilt-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/network/network.impl.h')
-rw-r--r-- | game/network/network.impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/network/network.impl.h b/game/network/network.impl.h index 5b1649d..597e3aa 100644 --- a/game/network/network.impl.h +++ b/game/network/network.impl.h @@ -8,7 +8,7 @@ NetworkOf<T>::render(const Shader & shader) const { if constexpr (std::is_base_of_v<Renderable, T>) { shader.setModel(Location {}, Shader::Program::StaticPos); - texture->Bind(); + texture->bind(); links.apply(&Renderable::render, shader); } } |