From 25ae4e3a68ad044694f93efc9d6df2bfebf95e6a Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 21 Feb 2021 14:50:30 +0000 Subject: Fix drawing order of rail vehicle parts --- game/vehicles/railloco.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'game') 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 -- cgit v1.2.3