Do not crash when window creation fails (e.g. running headless)
Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
parent
a51cb460bc
commit
0ad791dee0
3 changed files with 3 additions and 5 deletions
|
@ -603,9 +603,7 @@ static void Window__writeImagePNG(void* context, void* data, int size) {
|
|||
|
||||
|
||||
void Window::step() {
|
||||
DISTRHO_SAFE_ASSERT_RETURN(internal->tlw != nullptr,);
|
||||
|
||||
if (vg == nullptr)
|
||||
if (internal->tlw == nullptr || vg == nullptr)
|
||||
return;
|
||||
|
||||
double frameTime = system::getTime();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue