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/vehicles/railVehicleClass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/vehicles') diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp index 689e1e6..7eb4495 100644 --- a/game/vehicles/railVehicleClass.cpp +++ b/game/vehicles/railVehicleClass.cpp @@ -41,7 +41,7 @@ RailVehicleClass::RailVehicleClass(std::unique_ptr o, std::shared_ptr void RailVehicleClass::render(const Shader & shader, const Location & location, const std::array & bl) const { - texture->Bind(); + texture->bind(); for (auto b = 0U; b < bogies.size(); ++b) { shader.setModel(bl[b]); bogies[b]->Draw(); -- cgit v1.2.3