summaryrefslogtreecommitdiff
path: root/game/network/rail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'game/network/rail.cpp')
-rw-r--r--game/network/rail.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/game/network/rail.cpp b/game/network/rail.cpp
index 545620d..d0a8bdd 100644
--- a/game/network/rail.cpp
+++ b/game/network/rail.cpp
@@ -159,8 +159,7 @@ namespace {
if (auto count = networkLinks.vertices.size()) {
shader.use(RAIL_CROSS_SECTION, RAIL_TEXTURE_POS);
glBindVertexArray(networkLinks.vao);
- glVertexArrayVertexBuffer(
- networkLinks.vao, 0, networkLinks.vertices.bufferName(), 0, sizeof(typename LinkType::Vertex));
+ networkLinks.vao.useBuffer(0, networkLinks.vertices);
glDrawArrays(mode, 0, static_cast<GLsizei>(count));
}
};