summaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
Diffstat (limited to 'game')
-rw-r--r--game/vehicles/railloco.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/vehicles/railloco.cpp b/game/vehicles/railloco.cpp
index 6a43965..787712b 100644
--- a/game/vehicles/railloco.cpp
+++ b/game/vehicles/railloco.cpp
@@ -19,13 +19,13 @@
void
RailVehicle::render(const Shader & shader) const
{
- shader.setModel(location.GetModel());
texture->Bind();
- bodyMesh->Draw();
for (const auto & bogey : bogeys) {
shader.setModel(bogey.location.GetModel());
bogey.mesh->Draw();
}
+ shader.setModel(location.GetModel());
+ bodyMesh->Draw();
}
void