diff --git a/plugins/ProM/DistrhoUIProM.cpp b/plugins/ProM/DistrhoUIProM.cpp index 5ed086f..9ccc883 100644 --- a/plugins/ProM/DistrhoUIProM.cpp +++ b/plugins/ProM/DistrhoUIProM.cpp @@ -14,7 +14,6 @@ * For a full copy of the license see the LICENSE file. */ -#include "libprojectM/projectM-opengl.h" #include "libprojectM/projectM.hpp" #include "DistrhoPluginProM.hpp" @@ -172,9 +171,6 @@ void DistrhoUIProM::onDisplay() return; fPM->renderFrame(); - - // turn off shaders at the end of the drawing cycle, so other things can draw properly - glUseProgram(0); } static projectMKeycode dgl2pmkey(const DGL_NAMESPACE::Key key) noexcept diff --git a/plugins/ProM/ResizeHandle.hpp b/plugins/ProM/ResizeHandle.hpp index 7f3207f..9729f8e 100644 --- a/plugins/ProM/ResizeHandle.hpp +++ b/plugins/ProM/ResizeHandle.hpp @@ -57,6 +57,7 @@ protected: const double lineWidth = 1.0 * getScaleFactor(); #ifdef DGL_OPENGL + glUseProgram(0); glMatrixMode(GL_MODELVIEW); #endif