Fixed error: 'srcpixel' may be used uninitialized

This commit is contained in:
Sam Lantinga committed 2025-11-07 11:11:31 -08:00
1 parent 0f21e46586
commit 294beceec7
1 file changed
+1
+1
View File
@@ -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;