rcore.c : InitWindow() check InitPlatform() success.

This commit is contained in:
SuperUserNameMan 2024-07-15 10:00:32 +02:00 committed by GitHub
parent e87965e178
commit 276a74b534
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -631,7 +631,12 @@ void InitWindow(int width, int height, const char *title)
// Initialize platform
//--------------------------------------------------------------
InitPlatform();
if ( InitPlatform() != 0 )
{
TRACELOG(LOG_ERROR, "Platform backend: Window initialization failed.");
CORE.Window.ready = false;
return;
}
//--------------------------------------------------------------
// Initialize rlgl default data (buffers and shaders)