mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-03-20 15:51:07 +01:00
Fix PSP_QueueGeometry funcion rendering some textures too small
This commit is contained in:
committed by
Sam Lantinga
parent
3aa3a357fc
commit
c1e715439a
@@ -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