fixed: uninitalized m_Flags in window made the application window not appear

This commit is contained in:
2026-04-16 15:34:09 +02:00
parent 4b89548102
commit fa05feceb8
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@
#include <span>
namespace SakuraVNE {
Window::Window(const WindowData &data) : m_Data(data) {}
Window::Window(const WindowData &data) : m_Data(data), m_Flags(0) {}
Window::~Window() { Destroy(); }
bool Window::Create(const SDL_WindowFlags flags) {

View File

@@ -9,7 +9,7 @@
namespace SakuraVNE {
struct WindowData {
SDL_WindowFlags windowFlags;
SDL_WindowFlags windowFlags = 0;
std::string title = "Window Title";
int width = 1280;
int height = 720;