From 420604efafdacc89ff38d3fb5dbdec3c4b30767f Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Wed, 11 Mar 2026 02:23:59 +0000 Subject: Sprinkling of glDebugScope in assets and render parts --- game/network/rail.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'game/network/rail.cpp') diff --git a/game/network/rail.cpp b/game/network/rail.cpp index 1ae5aca..13d5ef5 100644 --- a/game/network/rail.cpp +++ b/game/network/rail.cpp @@ -157,6 +157,7 @@ namespace { renderType(const NetworkLinkHolder & networkLinks, auto & shader, GLenum mode) { if (auto count = networkLinks.vertices.size()) { + auto _ = glDebugScope(networkLinks.vao); shader.use(RAIL_CROSS_SECTION, RAIL_TEXTURE_POS); glBindVertexArray(networkLinks.vao); networkLinks.vao.useBuffer(0, networkLinks.vertices); @@ -168,7 +169,8 @@ namespace { void RailLinks::render(const SceneShader & shader, const Frustum &) const { - if (auto _ = glDebugScope(0); !links.empty()) { + if (!links.empty()) { + auto _ = glDebugScope(0); texture->bind(0); glEnable(GL_POLYGON_OFFSET_FILL); glPolygonOffset(-1, 0); -- cgit v1.3