mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-02-22 03:30:35 +00:00
Removed useless branch test
Fixes https://github.com/libsdl-org/SDL/issues/8286 (cherry picked from commit e5ccc80aba60f4132823d71ea6952c87f2392d06) (cherry picked from commit 7e11bd1ac18855e804559ec3eb9d845e4bf30271)
This commit is contained in:
parent
15bc12165a
commit
80b2bbad21
@ -338,12 +338,7 @@ int SDL_SW_FillTriangle(SDL_Surface *dst, SDL_Point *d0, SDL_Point *d1, SDL_Poin
|
||||
if (is_uniform) {
|
||||
Uint32 color;
|
||||
if (tmp) {
|
||||
if (dst->format->Amask) {
|
||||
color = SDL_MapRGBA(tmp->format, c0.r, c0.g, c0.b, c0.a);
|
||||
} else {
|
||||
// color = SDL_MapRGB(tmp->format, c0.r, c0.g, c0.b);
|
||||
color = SDL_MapRGBA(tmp->format, c0.r, c0.g, c0.b, c0.a);
|
||||
}
|
||||
color = SDL_MapRGBA(tmp->format, c0.r, c0.g, c0.b, c0.a);
|
||||
} else {
|
||||
color = SDL_MapRGBA(dst->format, c0.r, c0.g, c0.b, c0.a);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user