diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp index 56546d76..6203ebb2 100644 --- a/dgl/src/NanoVG.cpp +++ b/dgl/src/NanoVG.cpp @@ -1,6 +1,6 @@ /* * DISTRHO Plugin Framework (DPF) - * Copyright (C) 2012-2021 Filipe Coelho + * Copyright (C) 2012-2025 Filipe Coelho * * Permission to use, copy, modify, and/or distribute this software for any purpose with * or without fee is hereby granted, provided that the above copyright notice and this @@ -1144,6 +1144,9 @@ inline void NanoBaseWidget::onDisplay() onNanoDisplay(); displayChildren(); NanoVG::endFrame(); + #ifdef DGL_USE_OPENGL3 + glUseProgram(reinterpret_cast(getGraphicsContext()).program); + #endif } }