mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
Fix minimap MSAA pipeline, defer swapchain recreation, fix player character spawn order
- Add .setMultisample() to minimap display pipeline and recreatePipelines() for MSAA changes - Defer all swapchain recreation in window.cpp to beginFrame() via markSwapchainDirty() to prevent mid-frame render pass destruction crashes on resolution/fullscreen change - Move spawnPlayerCharacter() call to after loadTestTerrain() where character renderer exists
This commit is contained in:
parent
ebd0084c22
commit
e8e859384e
6 changed files with 57 additions and 3 deletions
|
|
@ -89,7 +89,7 @@ void Window::pollEvents() {
|
|||
width = event.window.data1;
|
||||
height = event.window.data2;
|
||||
if (vkContext) {
|
||||
vkContext->recreateSwapchain(width, height);
|
||||
vkContext->markSwapchainDirty();
|
||||
}
|
||||
LOG_DEBUG("Window resized to ", width, "x", height);
|
||||
}
|
||||
|
|
@ -120,7 +120,7 @@ void Window::setFullscreen(bool enable) {
|
|||
height = windowedHeight;
|
||||
}
|
||||
if (vkContext) {
|
||||
vkContext->recreateSwapchain(width, height);
|
||||
vkContext->markSwapchainDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -145,7 +145,7 @@ void Window::applyResolution(int w, int h) {
|
|||
windowedWidth = w;
|
||||
windowedHeight = h;
|
||||
if (vkContext) {
|
||||
vkContext->recreateSwapchain(width, height);
|
||||
vkContext->markSwapchainDirty();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue