Fix MSAA crash by deferring change to between frames, fix M2 GO orientation

MSAA change was called mid-frame from settings UI, destroying the render pass
and framebuffers while the command buffer was still recording. Now deferred
via pendingMsaaSamples_ flag, applied in beginFrame() before any GPU state.

Also add +180° to M2 game object orientation to fix facing direction.
This commit is contained in:
Kelsi 2026-02-22 03:37:47 -08:00
parent 325254dfcb
commit ebd0084c22
3 changed files with 21 additions and 1 deletions

View file

@ -244,6 +244,9 @@ public:
void setMsaaSamples(VkSampleCountFlagBits samples);
private:
void applyMsaaChange();
VkSampleCountFlagBits pendingMsaaSamples_ = VK_SAMPLE_COUNT_1_BIT;
bool msaaChangePending_ = false;
void renderShadowPass();
glm::mat4 computeLightSpaceMatrix();