mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-05 17:36:26 +00:00
Make sure CORE.Window.ready is set
This commit is contained in:
@@ -1657,6 +1657,8 @@ static int InitPlatform(void)
|
||||
rlLoadExtensions(glfwGetProcAddress);
|
||||
|
||||
if ((CORE.Window.flags & FLAG_WINDOW_MINIMIZED) > 0) MinimizeWindow();
|
||||
|
||||
CORE.Window.ready = true; // TODO: Proper validation on windows/context creation
|
||||
|
||||
// If graphic device is no properly initialized, we end program
|
||||
if (!CORE.Window.ready) { TRACELOG(LOG_FATAL, "PLATFORM: Failed to initialize graphic device"); return -1; }
|
||||
|
Reference in New Issue
Block a user