diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-03 13:50:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-12-03 13:50:24 +0000 |
commit | 9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b (patch) | |
tree | adb04220f4bcc11c5e8e22cc9630f8e99a955548 /game | |
parent | Shader viewPoint now an integer (diff) | |
download | ilt-9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b.tar.bz2 ilt-9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b.tar.xz ilt-9fc82f2dd5aaa6f858ba22c92946e8cadfd7d79b.zip |
Render correct VAO for rail vehicle shadows
Diffstat (limited to 'game')
-rw-r--r-- | game/vehicles/railVehicleClass.cpp | 4 |
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); } } |