Skip to content

Commit

Permalink
Terminate dangling shader program in RenderInterface_GL3_Recoil::EndF…
Browse files Browse the repository at this point in the history
…rame()
  • Loading branch information
lhog committed Sep 22, 2024
1 parent bb334ac commit c090df7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rts/Rml/Backends/RmlUi_Renderer_GL3_Recoil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ void RenderInterface_GL3_Recoil::EndFrame()

render_layers.EndFrame();

UseProgram(ProgramId::None);

// Restore GL state.
if (glstate_backup.enable_cull_face)
glEnable(GL_CULL_FACE);
Expand Down

0 comments on commit c090df7

Please sign in to comment.