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.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->col.a = (Uint8)SDL_roundf(SDL_clamp(col_->a, 0.0f, 1.0f) * 255.0f);
|
||||||
|
|
||||||
verts->u = uv_[0] * psp_texture->textureWidth;
|
verts->u = uv_[0] * (float) psp_texture->width;
|
||||||
verts->v = uv_[1] * psp_texture->textureHeight;
|
verts->v = uv_[1] * (float) psp_texture->height;
|
||||||
|
|
||||||
verts++;
|
verts++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user