Skip to content

Commit

Permalink
Call glUseProgram(0) on UI rather than resize handle
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Jan 9, 2022
1 parent 14f1257 commit 537d017
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/ProM/DistrhoUIProM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void DistrhoUIProM::uiIdle()
}
}

void DistrhoUIProM::uiReshape(uint width, uint height)
void DistrhoUIProM::uiReshape(const uint width, const uint height)
{
UI::uiReshape(width, height);

Expand Down Expand Up @@ -133,6 +133,9 @@ void DistrhoUIProM::onDisplay()
return;

fPM->renderFrame();

// some projectM versions do not turn off the last set GL program
glUseProgram(0);
}

static projectMKeycode dgl2pmkey(const DGL_NAMESPACE::Key key) noexcept
Expand Down

0 comments on commit 537d017

Please sign in to comment.