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
2
carla
2
carla
|
|
@ -1 +1 @@
|
||||||
Subproject commit 604416bf33bcf16410e43009f6d94b86dd41afcd
|
Subproject commit 62e17bf0e180ec97aa227f142fc3274602aa554f
|
||||||
2
dpf
2
dpf
|
|
@ -1 +1 @@
|
||||||
Subproject commit 044b74cb9326c82375ebd65a2020ad0565a19f8e
|
Subproject commit 227a7015a85deeed52eb2c58456303c201674118
|
||||||
|
|
@ -603,9 +603,7 @@ static void Window__writeImagePNG(void* context, void* data, int size) {
|
||||||
|
|
||||||
|
|
||||||
void Window::step() {
|
void Window::step() {
|
||||||
DISTRHO_SAFE_ASSERT_RETURN(internal->tlw != nullptr,);
|
if (internal->tlw == nullptr || vg == nullptr)
|
||||||
|
|
||||||
if (vg == nullptr)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
double frameTime = system::getTime();
|
double frameTime = system::getTime();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue