fixed: uninitalized m_Flags in window made the application window not appear
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user