Skip to content

Commit 797511b

Browse files
committed
Check for surface vilidaty before destrying
1 parent 0756816 commit 797511b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/window-osx.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ @implementation WindowImplObj
398398
return;
399399

400400
WindowInfo* wi = reinterpret_cast<WindowInfo*>(it->second);
401+
if (!wi->view.glData->surface)
402+
return;
403+
401404
wi->view.glData->mtx.lock();
402405
wi->view.glData->stop = true;
403406

0 commit comments

Comments
 (0)