Fixed crash on PSP

This commit is contained in:
2026-03-29 10:35:57 -05:00
parent 1c5e50cc4d
commit 55d44f229d
2 changed files with 7 additions and 6 deletions

View File

@@ -30,6 +30,11 @@ errorret_t displayInit(void) {
#ifdef displayPlatformInit #ifdef displayPlatformInit
errorChain(displayPlatformInit()); errorChain(displayPlatformInit());
#endif #endif
errorChain(quadInit());
errorChain(frameBufferInitBackBuffer());
errorChain(spriteBatchInit());
errorChain(textInit());
errorChain(screenInit());
// Setup initial shader with default values // Setup initial shader with default values
errorChain(shaderInit(&SHADER_UNLIT, &SHADER_UNLIT_DEFINITION)); errorChain(shaderInit(&SHADER_UNLIT, &SHADER_UNLIT_DEFINITION));
@@ -45,11 +50,6 @@ errorret_t displayInit(void) {
errorChain(shaderSetMatrix(&SHADER_UNLIT, SHADER_UNLIT_MODEL, mat)); errorChain(shaderSetMatrix(&SHADER_UNLIT, SHADER_UNLIT_MODEL, mat));
errorChain(shaderSetTexture(&SHADER_UNLIT, SHADER_UNLIT_TEXTURE, NULL)); errorChain(shaderSetTexture(&SHADER_UNLIT, SHADER_UNLIT_TEXTURE, NULL));
errorChain(quadInit());
errorChain(frameBufferInitBackBuffer());
errorChain(spriteBatchInit());
errorChain(textInit());
errorChain(screenInit());
errorOk(); errorOk();
} }

View File

@@ -47,7 +47,6 @@ errorret_t textDrawChar(
vec4 uv; vec4 uv;
tilesetTileGetUV(tileset, tileIndex, uv); tilesetTileGetUV(tileset, tileIndex, uv);
errorChain(shaderSetTexture(&SHADER_UNLIT, SHADER_UNLIT_TEXTURE, texture));
errorChain(spriteBatchPush( errorChain(spriteBatchPush(
// texture, // texture,
@@ -74,6 +73,8 @@ errorret_t textDraw(
float_t posX = x; float_t posX = x;
float_t posY = y; float_t posY = y;
// errorChain(shaderSetTexture(&SHADER_UNLIT, SHADER_UNLIT_TEXTURE, texture));
char_t c; char_t c;
int32_t i = 0; int32_t i = 0;
while((c = text[i++]) != '\0') { while((c = text[i++]) != '\0') {