From d63f393b7bcabd7f6569b87a2dedbc8333c47554 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 30 Oct 2022 17:08:59 +0000 Subject: Setting texture unit on bind Always sets the target unit before binding, allows specifying the unit --- game/network/network.impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/network') 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::render(const Shader & shader) const { if constexpr (std::is_base_of_v) { shader.setModel(Location {}, Shader::Program::StaticPos); - texture->Bind(); + texture->bind(); links.apply(&Renderable::render, shader); } } -- cgit v1.2.3