Skip to content

Commit

Permalink
Check for surface vilidaty before destrying
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyGharbi committed Mar 5, 2020
1 parent 0756816 commit 797511b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/window-osx.mm
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,9 @@ @implementation WindowImplObj
return;

WindowInfo* wi = reinterpret_cast<WindowInfo*>(it->second);
if (!wi->view.glData->surface)
return;

wi->view.glData->mtx.lock();
wi->view.glData->stop = true;

Expand Down

0 comments on commit 797511b

Please sign in to comment.