mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (DirectVulkan): suspend presentation while the window is zero-area - a minimized window's out-of-date swapchain used to keep Present submitting on a signaled fence and presenting never-acquired images (adversarial review); also drop logging from the process-detach abandon path
This commit is contained in:
+3
-2
@@ -95,15 +95,16 @@ namespace MobileGL {
|
||||
// inside a dying process - other threads have already been terminated,
|
||||
// so Vulkan/GLES cleanup crashes with the process half-dead. The process
|
||||
// is exiting; the OS reclaims everything.
|
||||
// No logging here: this runs under the loader lock after every other
|
||||
// thread was terminated, where the log mutex/heap/stdio may be in any
|
||||
// state. Plain pointer stores only.
|
||||
void AbandonAtProcessExit() {
|
||||
MGLOG_I("MobileGL: process detach, abandoning global state");
|
||||
MG_Backend::DirectVulkan::pVulkanRenderer.release();
|
||||
MG_Backend::pActiveBackendObject.release();
|
||||
MG_State::pGLContext.release();
|
||||
MG_State::pEGLContext.release();
|
||||
MG_Impl::GLImpl::TextureImpl::pProxyTextureManager.release();
|
||||
MG_Impl::GLImpl::FramebufferImpl::pDefaultFramebufferInfo.release();
|
||||
MGLOG_I("MobileGL: global state abandoned");
|
||||
}
|
||||
} // namespace
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user