summaryrefslogtreecommitdiff
path: root/game/vehicles
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-12-03 13:50:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-12-03 13:50:24 +0000
commit9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b (patch)
treeadb04220f4bcc11c5e8e22cc9630f8e99a955548 /game/vehicles
parentShader viewPoint now an integer (diff)
downloadilt-9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b.tar.bz2
ilt-9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b.tar.xz
ilt-9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b.zip
Render correct VAO for rail vehicle shadows
Diffstat (limited to 'game/vehicles')
-rw-r--r--game/vehicles/railVehicleClass.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/game/vehicles/railVehicleClass.cpp b/game/vehicles/railVehicleClass.cpp
index 7a6a9fe..3ca42db 100644
--- a/game/vehicles/railVehicleClass.cpp
+++ b/game/vehicles/railVehicleClass.cpp
@@ -66,7 +66,7 @@ RailVehicleClass::shadows(const ShadowMapper & mapper) const
if (const auto count = static_cast<GLsizei>(instances.size())) {
mapper.dynamicPointInst.use();
bodyMesh->DrawInstanced(instanceVAO, count);
- bogies.front()->DrawInstanced(instanceVAO, count);
- bogies.back()->DrawInstanced(instanceVAO, count);
+ bogies.front()->DrawInstanced(instancesBogiesVAO.front(), count);
+ bogies.back()->DrawInstanced(instancesBogiesVAO.back(), count);
}
}