Ver a proveniência

Fix isGpuReady flag on android (#4340)

pull/4351/head
Menno van der Graaf há 1 ano
committed by GitHub
ascendente
cometimento
55e83468c9
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: B5690EEEBB952194
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      src/platforms/rcore_android.c

+ 2
- 1
src/platforms/rcore_android.c Ver ficheiro

@ -74,7 +74,7 @@ typedef struct {
// Global Variables Definition
//----------------------------------------------------------------------------------
extern CoreData CORE; // Global CORE state context
extern bool isGpuReady; // Flag to note GPU has been initialized successfully
static PlatformData platform = { 0 }; // Platform specific data
//----------------------------------------------------------------------------------
@ -989,6 +989,7 @@ static void AndroidCommandCallback(struct android_app *app, int32_t cmd)
// Initialize OpenGL context (states and resources)
// NOTE: CORE.Window.currentFbo.width and CORE.Window.currentFbo.height not used, just stored as globals in rlgl
rlglInit(CORE.Window.currentFbo.width, CORE.Window.currentFbo.height);
isGpuReady = true;
// Setup default viewport
// NOTE: It updated CORE.Window.render.width and CORE.Window.render.height

Carregando…
Cancelar
Guardar