mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 08:13:34 +01:00
Vulkan: Allow resizing window/backbuffer.
Not tested much on Android. Fixes #8656.
This commit is contained in:
1 parent
963b18e6c2
commit
aec117d8ea
2 files changed
+7
-12
No files matched your search
@@ -182,8 +182,6 @@ bool WindowsVulkanContext::Init(HINSTANCE hInst, HWND hWnd, std::string *error_m
|
||||
g_Vulkan->InitSurfaceWin32(hInst, hWnd);
|
||||
g_Vulkan->InitObjects(true);
|
||||
|
||||
_CrtCheckMemory();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -206,13 +204,11 @@ void WindowsVulkanContext::SwapBuffers() {
|
||||
}
|
||||
|
||||
void WindowsVulkanContext::Resize() {
|
||||
/*
|
||||
g_Vulkan->WaitUntilQueueIdle();
|
||||
g_Vulkan->DestroyObjects();
|
||||
|
||||
g_Vulkan->WaitUntilQueueIdle();
|
||||
|
||||
g_Vulkan->InitObjects(g_Vulkan)
|
||||
*/
|
||||
g_Vulkan->ReinitSurfaceWin32();
|
||||
g_Vulkan->InitObjects(true);
|
||||
}
|
||||
|
||||
void WindowsVulkanContext::SwapInterval(int interval) {
|
||||
|
||||
@@ -288,13 +288,12 @@ void AndroidVulkanContext::SwapBuffers() {
|
||||
}
|
||||
|
||||
void AndroidVulkanContext::Resize() {
|
||||
/*
|
||||
g_Vulkan->WaitUntilQueueIdle();
|
||||
g_Vulkan->DestroyObjects();
|
||||
|
||||
g_Vulkan->WaitUntilQueueIdle();
|
||||
|
||||
g_Vulkan->InitObjects(g_Vulkan)
|
||||
*/
|
||||
// backbufferResize updated these values. TODO: Notify another way?
|
||||
g_Vulkan->ReinitSurfaceAndroid(pixel_xres, pixel_yres);
|
||||
g_Vulkan->InitObjects(g_Vulkan);
|
||||
}
|
||||
|
||||
void AndroidVulkanContext::SwapInterval(int interval) {
|
||||
|
||||
Reference in new issue
Block a user