Fix PSP_QueueGeometry funcion rendering some textures too small

(cherry picked from commit c1e715439a)
This commit is contained in:
Wouter Wijsman
2026-01-28 15:06:31 +01:00
committed by Sam Lantinga
parent 3bde3e2406
commit 6cd9374929

View File

@@ -769,8 +769,8 @@ static bool PSP_QueueGeometry(SDL_Renderer *renderer, SDL_RenderCommand *cmd, SD
verts->col.b = (Uint8)SDL_roundf(SDL_clamp(col_->b * color_scale, 0.0f, 1.0f) * 255.0f);
verts->col.a = (Uint8)SDL_roundf(SDL_clamp(col_->a, 0.0f, 1.0f) * 255.0f);
verts->u = uv_[0] * psp_texture->textureWidth;
verts->v = uv_[1] * psp_texture->textureHeight;
verts->u = uv_[0] * (float) psp_texture->width;
verts->v = uv_[1] * (float) psp_texture->height;
verts++;
}