From 537d017365c231150d7287ee81c651bf4bb1d4df Mon Sep 17 00:00:00 2001 From: falkTX Date: Sun, 9 Jan 2022 02:18:23 +0000 Subject: [PATCH] Call glUseProgram(0) on UI rather than resize handle Signed-off-by: falkTX --- plugins/ProM/DistrhoUIProM.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/ProM/DistrhoUIProM.cpp b/plugins/ProM/DistrhoUIProM.cpp index 1ec3d47..00d6bc9 100644 --- a/plugins/ProM/DistrhoUIProM.cpp +++ b/plugins/ProM/DistrhoUIProM.cpp @@ -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); @@ -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