mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-28 00:54:35 +00:00
Fixed error: 'srcpixel' may be used uninitialized
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user