mirror of
https://github.com/seekrs/MacroLibX.git
synced 2026-01-11 22:53:34 +00:00
fixing put pixel, adding scene change checker
This commit is contained in:
@@ -47,6 +47,8 @@ namespace mlx
|
||||
|
||||
RenderCore::RenderCore()
|
||||
{
|
||||
if(s_instance != nullptr)
|
||||
return;
|
||||
s_instance = this;
|
||||
|
||||
loader = std::make_unique<VulkanLoader>();
|
||||
@@ -193,7 +195,10 @@ namespace mlx
|
||||
|
||||
RenderCore::~RenderCore()
|
||||
{
|
||||
if(s_instance == nullptr)
|
||||
return;
|
||||
WaitDeviceIdle();
|
||||
m_descriptor_pool_manager.Destroy();
|
||||
m_allocator.Destroy();
|
||||
kvfDestroyDevice(m_device);
|
||||
DebugLog("Vulkan : logical device destroyed");
|
||||
|
||||
Reference in New Issue
Block a user