From 6242a2cbb26f41a9c170e31a3f4e22f06431a4e2 Mon Sep 17 00:00:00 2001 From: falkTX Date: Tue, 5 Oct 2021 00:29:43 +0100 Subject: [PATCH] Remove the need for libprojectM/projectM-opengl.h Signed-off-by: falkTX --- plugins/ProM/DistrhoUIProM.cpp | 4 ---- plugins/ProM/ResizeHandle.hpp | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) 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