diff --git a/src/rcore.c b/src/rcore.c index 9cd9eb04f..9b269e5a9 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -631,10 +631,10 @@ void InitWindow(int width, int height, const char *title) // Initialize platform //-------------------------------------------------------------- - if ( InitPlatform() != 0 ) + int result = InitPlatform(); + if (result == -1 ) { TRACELOG(LOG_ERROR, "Platform backend: Window initialization failed."); - CORE.Window.ready = false; return; } //--------------------------------------------------------------