mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
325254dfcb
commit
ebd0084c22
3 changed files with 21 additions and 1 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue