Update rcore.c
This commit is contained in:
parent
276a74b534
commit
0ae7b0fb91
|
|
@ -631,10 +631,10 @@ void InitWindow(int width, int height, const char *title)
|
||||||
|
|
||||||
// Initialize platform
|
// Initialize platform
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
if ( InitPlatform() != 0 )
|
int result = InitPlatform();
|
||||||
|
if (result == -1 )
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_ERROR, "Platform backend: Window initialization failed.");
|
TRACELOG(LOG_ERROR, "Platform backend: Window initialization failed.");
|
||||||
CORE.Window.ready = false;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//--------------------------------------------------------------
|
//--------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user