From b964b37de1b60856cd2a2141a0f35819cb809ef7 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 24 Oct 2025 19:26:09 +0200 Subject: [PATCH] Fix using NanoSubWidget on top of raw GL3 context Signed-off-by: falkTX --- dgl/src/NanoVG.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } }