mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-25 02:32:16 +09:00
[Fix] (MG_Impl): handle Retina drawable resize on macOS
This commit is contained in:
1 parent
65ff056b2e
commit
3fc6357f28
7 files changed
+142
-43
No files matched your search
@@ -420,7 +420,8 @@ namespace MobileGL::MG_Backend::DirectVulkan {
|
||||
}
|
||||
|
||||
const Bool sameHandle = m_eglSurfaceInitialized && m_eglSurfaceKind == SurfaceKind::Window &&
|
||||
m_windowHandle.Backend == handle.Backend && m_windowHandle.Handle == handle.Handle;
|
||||
m_windowHandle.Backend == handle.Backend && m_windowHandle.Handle == handle.Handle &&
|
||||
m_windowHandle.Width == handle.Width && m_windowHandle.Height == handle.Height;
|
||||
if (sameHandle) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user