mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 14:43:34 +00:00
fixing linux build failure
This commit is contained in:
@@ -37,7 +37,7 @@ namespace mlx
|
|||||||
return static_cast<Sprite*>(drawable.get())->GetTexture() == texture &&
|
return static_cast<Sprite*>(drawable.get())->GetTexture() == texture &&
|
||||||
drawable->GetPosition() == position &&
|
drawable->GetPosition() == position &&
|
||||||
drawable->GetScale() == Vec2f{ scale, scale } &&
|
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<Sprite*>(it != m_drawables.end() ? it->get() : nullptr);
|
return static_cast<Sprite*>(it != m_drawables.end() ? it->get() : nullptr);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,7 +132,6 @@ namespace mlx
|
|||||||
kvfDestroyFramebuffer(RenderCore::Get().GetDevice(), fb);
|
kvfDestroyFramebuffer(RenderCore::Get().GetDevice(), fb);
|
||||||
DebugLog("Vulkan: framebuffer destroyed");
|
DebugLog("Vulkan: framebuffer destroyed");
|
||||||
}
|
}
|
||||||
m_framebuffers.clear();
|
|
||||||
|
|
||||||
kvfDestroyPipelineLayout(RenderCore::Get().GetDevice(), m_pipeline_layout);
|
kvfDestroyPipelineLayout(RenderCore::Get().GetDevice(), m_pipeline_layout);
|
||||||
m_pipeline_layout = VK_NULL_HANDLE;
|
m_pipeline_layout = VK_NULL_HANDLE;
|
||||||
@@ -149,6 +148,7 @@ namespace mlx
|
|||||||
p_renderer = nullptr;
|
p_renderer = nullptr;
|
||||||
m_clears.clear();
|
m_clears.clear();
|
||||||
m_attachments.clear();
|
m_attachments.clear();
|
||||||
|
m_framebuffers.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
void GraphicPipeline::CreateFramebuffers(const std::vector<NonOwningPtr<Texture>>& render_targets, bool clear_attachments)
|
void GraphicPipeline::CreateFramebuffers(const std::vector<NonOwningPtr<Texture>>& render_targets, bool clear_attachments)
|
||||||
|
|||||||
Reference in New Issue
Block a user