From c403a71564def731f4d3b80d6ff63f08aa3c7ea3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 11 Mar 2026 20:45:05 +0000 Subject: Reuse vertex array objects for common structures with DSA Slashes the number of VAOs required and the amount of setup required. --- game/network/rail.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/network') diff --git a/game/network/rail.cpp b/game/network/rail.cpp index 13d5ef5..e8cc1b6 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -138,6 +138,7 @@ RailLink::vehiclePositionOffset() const template<> NetworkLinkHolder::NetworkLinkHolder() { + glDebugScope _ {0}; vao.configure() .addAttribs(0); @@ -145,6 +146,7 @@ template<> NetworkLinkHolder::NetworkLinkHolder() template<> NetworkLinkHolder::NetworkLinkHolder() { + glDebugScope _ {0}; vao.configure() .addAttribsbind(0); glEnable(GL_POLYGON_OFFSET_FILL); glPolygonOffset(-1, 0); -- cgit v1.3