Fix issues with ui rendering
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "RenderPass.hpp"
|
||||
#include "Base/UI/IWindow.hpp"
|
||||
#include "Scene/UI/UI.hpp"
|
||||
#include <vulkan/vulkan.hpp>
|
||||
|
||||
@@ -20,6 +21,7 @@ namespace openVulkanoCpp::Vulkan
|
||||
RenderPass uiRenderPass;
|
||||
vk::DescriptorPool descriptorPool;
|
||||
Scene::UI::Ui* ui;
|
||||
IWindow* window = nullptr;
|
||||
bool uiInitialized = false;
|
||||
|
||||
public:
|
||||
@@ -27,7 +29,7 @@ namespace openVulkanoCpp::Vulkan
|
||||
|
||||
UiRenderer(Context* context) { Init(context); }
|
||||
|
||||
~UiRenderer() { if (descriptorPool) Close(); }
|
||||
~UiRenderer() { if (uiInitialized) Close(); }
|
||||
|
||||
void Init(Context* context);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user