diff options
| author | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-11 02:23:59 +0000 |
|---|---|---|
| committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2026-03-11 02:45:48 +0000 |
| commit | 420604efafdacc89ff38d3fb5dbdec3c4b30767f (patch) | |
| tree | f6ee1b8bcc5d045cd8ccb6928ba08bd4f7a511a8 /game/network | |
| parent | Split addAttribsFor away from requiring a buffer to bind (diff) | |
| download | ilt-420604efafdacc89ff38d3fb5dbdec3c4b30767f.tar.bz2 ilt-420604efafdacc89ff38d3fb5dbdec3c4b30767f.tar.xz ilt-420604efafdacc89ff38d3fb5dbdec3c4b30767f.zip | |
Sprinkling of glDebugScope in assets and render parts
Diffstat (limited to 'game/network')
| -rw-r--r-- | game/network/rail.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<LinkType> & 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); |
