Browse Source

Modify asserts from nanovg failure

pull/321/head
falkTX 2 years ago
parent
commit
98ecaa0255
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      dgl/src/NanoVG.cpp

+ 2
- 2
dgl/src/NanoVG.cpp View File

@@ -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);


Loading…
Cancel
Save