Browse Source

Fix using NanoSubWidget on top of raw GL3 context

Signed-off-by: falkTX <falktx@falktx.com>
wayland-v2
falkTX 3 months ago
parent
commit
b964b37de1
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      dgl/src/NanoVG.cpp

+ 4
- 1
dgl/src/NanoVG.cpp View File

@@ -1,6 +1,6 @@
/*
* DISTRHO Plugin Framework (DPF)
* Copyright (C) 2012-2021 Filipe Coelho <falktx@falktx.com>
* Copyright (C) 2012-2025 Filipe Coelho <falktx@falktx.com>
*
* 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<SubWidget>::onDisplay()
onNanoDisplay();
displayChildren();
NanoVG::endFrame();
#ifdef DGL_USE_OPENGL3
glUseProgram(reinterpret_cast<const OpenGL3GraphicsContext&>(getGraphicsContext()).program);
#endif
}
}



Loading…
Cancel
Save