-
Notifications
You must be signed in to change notification settings - Fork 239
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -336,7 +336,8 @@ namespace Ogre | |
//------------------------------------------------------------------------- | ||
void VulkanAndroidWindow::setNativeWindow( ANativeWindow *nativeWindow ) | ||
{ | ||
destroy(); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
AllianceDarkSylinc
|
||
destroySwapchain(); | ||
destroySurface(); | ||
|
||
// Depth & Stencil buffer are normal textures; thus they need to be reeinitialized normally | ||
if( mDepthBuffer && mDepthBuffer->getResidencyStatus() != GpuResidency::OnStorage ) | ||
|
Is this safe?
The original called VulkanAndroidWindow::destroy() because it would end up calling
mDevice->stall()
when the app goes into the background.Otherwise there were crashes when the app went back to the foreground.