commit 98ecaa0255b1ec55b1d4161470d4969ed2c79d0c parent 3a6995163a6807d127be76a953b2726726f833ca Author: falkTX <falktx@falktx.com> Date: Fri, 15 Jul 2022 10:24:48 +0100 Modify asserts from nanovg failure Diffstat:
M | dgl/src/NanoVG.cpp | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dgl/src/NanoVG.cpp b/dgl/src/NanoVG.cpp @@ -318,12 +318,12 @@ NanoVG::NanoVG(int flags) fInFrame(false), fIsSubWidget(false) { - DISTRHO_SAFE_ASSERT(fContext); + DISTRHO_CUSTOM_SAFE_ASSERT("Failed to create NanoVG context, expect a black screen", fContext != nullptr); } NanoVG::~NanoVG() { - DISTRHO_SAFE_ASSERT(! fInFrame); + DISTRHO_CUSTOM_SAFE_ASSERT("Destroying NanoVG context with still active frame", ! fInFrame); if (fContext != nullptr && ! fIsSubWidget) nvgDeleteGL(fContext);