Fix issue with Windows JAWT swapchains (#1021)

This commit is contained in:
Ben Doherty
2019-03-25 14:41:46 -07:00
committed by GitHub
parent 25eef9dddb
commit 8b7c2159d3
6 changed files with 19 additions and 43 deletions

View File

@@ -63,5 +63,10 @@ public class FilamentCanvas extends Canvas implements FilamentTarget {
}
public void destroy(@NonNull Engine engine) {
if (mSwapChain == null) {
return;
}
engine.destroySwapChain(mSwapChain);
mSwapChain = null;
}
}