rcore.c : InitWindow() check InitPlatform() success.
This commit is contained in:
parent
e87965e178
commit
276a74b534
|
|
@ -631,7 +631,12 @@ void InitWindow(int width, int height, const char *title)
|
||||||
|
|
||||||
// Initialize platform
|
// 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)
|
// Initialize rlgl default data (buffers and shaders)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user