rcore_template.c : InitPlatform() return -1 not false

`false` might be defined as `0` in `raylib.h`
This commit is contained in:
SuperUserNameMan 2024-07-15 09:54:19 +02:00 committed by GitHub
parent 8d5374a443
commit e87965e178
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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