graphics: fix initialization

This commit is contained in:
nmzik committed 2026-07-21 07:37:52 +02:00
1 parent 0a5f78c727
commit 8a4600c5e9
16 files changed
+39 -170

No files matched your search

@@ -11,8 +11,6 @@
namespace Libs::Graphics {
struct WindowGame;
struct SurfaceCapabilities {
vk::SurfaceCapabilitiesKHR capabilities {};
std::vector<vk::SurfaceFormatKHR> formats;
@@ -28,14 +26,11 @@ struct WindowContext {
bool window_hidden = true;
vk::SurfaceKHR surface = nullptr;
SurfaceCapabilities* surface_capabilities = nullptr;
WindowGame* game = nullptr;
char device_name[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE] = {0};
char processor_name[64] = {0};
Common::Mutex mutex;
bool graphic_initialized = false;
Common::CondVar graphic_initialized_condvar;
Common::Mutex mutex;
};
extern WindowContext* g_window_ctx;