Browse Source

Call glUseProgram(0) on UI rather than resize handle

Signed-off-by: falkTX <falktx@falktx.com>
master
falkTX 3 years ago
parent
commit
537d017365
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      plugins/ProM/DistrhoUIProM.cpp

+ 4
- 1
plugins/ProM/DistrhoUIProM.cpp View File

@@ -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


Loading…
Cancel
Save