From 0ae7b0fb91d91e18f73b1db2ad67da4745ec2e55 Mon Sep 17 00:00:00 2001 From: SuperUserNameMan <9801802+SuperUserNameMan@users.noreply.github.com> Date: Tue, 16 Jul 2024 15:32:34 +0200 Subject: [PATCH] Update rcore.c --- src/rcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } //--------------------------------------------------------------