mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-02-13 23:33:13 +00:00
Fix PSP_QueueGeometry funcion rendering some textures too small
(cherry picked from commit c1e715439a)
This commit is contained in:
committed by
Sam Lantinga
parent
3bde3e2406
commit
6cd9374929
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user