Skip to content

Commit 55e8346

Browse files
authored
Fix isGpuReady flag on android (#4340)
1 parent 13178b9 commit 55e8346

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/platforms/rcore_android.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ typedef struct {
7474
// Global Variables Definition
7575
//----------------------------------------------------------------------------------
7676
extern CoreData CORE; // Global CORE state context
77-
77+
extern bool isGpuReady; // Flag to note GPU has been initialized successfully
7878
static PlatformData platform = { 0 }; // Platform specific data
7979

8080
//----------------------------------------------------------------------------------
@@ -989,6 +989,7 @@ static void AndroidCommandCallback(struct android_app *app, int32_t cmd)
989989
// Initialize OpenGL context (states and resources)
990990
// NOTE: CORE.Window.currentFbo.width and CORE.Window.currentFbo.height not used, just stored as globals in rlgl
991991
rlglInit(CORE.Window.currentFbo.width, CORE.Window.currentFbo.height);
992+
isGpuReady = true;
992993

993994
// Setup default viewport
994995
// NOTE: It updated CORE.Window.render.width and CORE.Window.render.height

0 commit comments

Comments
 (0)