mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fixed error: 'srcpixel' may be used uninitialized
This commit is contained in:
parent
0f21e46586
commit
294beceec7
1 changed files with 1 additions and 0 deletions
|
|
@ -802,6 +802,7 @@ static void SDL_BlitTriangle_Slow(SDL_BlitInfo *info,
|
|||
TRIANGLE_GET_TEXTCOORD
|
||||
src = (info->src + (srcy * info->src_pitch) + (srcx * srcbpp));
|
||||
if (FORMAT_INDEXED(srcfmt_val)) {
|
||||
srcpixel = *src;
|
||||
const SDL_Color *color = &palette->colors[*src];
|
||||
srcR = color->r;
|
||||
srcG = color->g;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue