From f27e5ef043ef21c91350e88404a2aab1fb668368 Mon Sep 17 00:00:00 2001 From: Kbz-8 Date: Wed, 13 Nov 2024 12:23:16 +0100 Subject: [PATCH] fixing linux build failure --- runtime/Sources/Graphics/Scene.cpp | 2 +- runtime/Sources/Renderer/Pipelines/Graphics.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/runtime/Sources/Graphics/Scene.cpp b/runtime/Sources/Graphics/Scene.cpp index fba15a5..c070e64 100644 --- a/runtime/Sources/Graphics/Scene.cpp +++ b/runtime/Sources/Graphics/Scene.cpp @@ -37,7 +37,7 @@ namespace mlx return static_cast(drawable.get())->GetTexture() == texture && drawable->GetPosition() == position && drawable->GetScale() == Vec2f{ scale, scale } && - drawable->GetRotation() == EulerAnglesf{ 0.0f, 0.0f, rotation }; + drawable->GetRotation().ToEulerAngles() == EulerAnglesf{ 0.0f, 0.0f, rotation }; }); return static_cast(it != m_drawables.end() ? it->get() : nullptr); } diff --git a/runtime/Sources/Renderer/Pipelines/Graphics.cpp b/runtime/Sources/Renderer/Pipelines/Graphics.cpp index 8913043..bdd5a59 100644 --- a/runtime/Sources/Renderer/Pipelines/Graphics.cpp +++ b/runtime/Sources/Renderer/Pipelines/Graphics.cpp @@ -132,7 +132,6 @@ namespace mlx kvfDestroyFramebuffer(RenderCore::Get().GetDevice(), fb); DebugLog("Vulkan: framebuffer destroyed"); } - m_framebuffers.clear(); kvfDestroyPipelineLayout(RenderCore::Get().GetDevice(), m_pipeline_layout); m_pipeline_layout = VK_NULL_HANDLE; @@ -149,6 +148,7 @@ namespace mlx p_renderer = nullptr; m_clears.clear(); m_attachments.clear(); + m_framebuffers.clear(); } void GraphicPipeline::CreateFramebuffers(const std::vector>& render_targets, bool clear_attachments)