Skip to content

Commit 537d017

Browse files
committed
Call glUseProgram(0) on UI rather than resize handle
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 14f1257 commit 537d017

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugins/ProM/DistrhoUIProM.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void DistrhoUIProM::uiIdle()
9292
}
9393
}
9494

95-
void DistrhoUIProM::uiReshape(uint width, uint height)
95+
void DistrhoUIProM::uiReshape(const uint width, const uint height)
9696
{
9797
UI::uiReshape(width, height);
9898

@@ -133,6 +133,9 @@ void DistrhoUIProM::onDisplay()
133133
return;
134134

135135
fPM->renderFrame();
136+
137+
// some projectM versions do not turn off the last set GL program
138+
glUseProgram(0);
136139
}
137140

138141
static projectMKeycode dgl2pmkey(const DGL_NAMESPACE::Key key) noexcept

0 commit comments

Comments
 (0)