From e87965e17887513118913bf7a70d734f6d137e62 Mon Sep 17 00:00:00 2001 From: SuperUserNameMan <9801802+SuperUserNameMan@users.noreply.github.com> Date: Mon, 15 Jul 2024 09:54:19 +0200 Subject: [PATCH] `rcore_template.c` : `InitPlatform()` return `-1` not `false` `false` might be defined as `0` in `raylib.h` --- src/platforms/rcore_template.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/rcore_template.c b/src/platforms/rcore_template.c index 7a48c465e..96d542959 100644 --- a/src/platforms/rcore_template.c +++ b/src/platforms/rcore_template.c @@ -476,7 +476,7 @@ int InitPlatform(void) if (platform.device == EGL_NO_DISPLAY) { TRACELOG(LOG_WARNING, "DISPLAY: Failed to initialize EGL device"); - return false; + return -1; } // Initialize the EGL device connection @@ -484,7 +484,7 @@ int InitPlatform(void) { // If all of the calls to eglInitialize returned EGL_FALSE then an error has occurred. TRACELOG(LOG_WARNING, "DISPLAY: Failed to initialize EGL device"); - return false; + return -1; } // Get an appropriate EGL framebuffer configuration