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

View File

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