Image: Fix uninitialized read without SIMD

This commit is contained in:
Stenzek 2024-11-22 19:57:46 +10:00
parent b984f343ae
commit 5d8519897d
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ void RGBA8Image::SwapBGRAToRGBA(void* pixels, u32 width, u32 height, u32 pitch)
}
#endif
for (; x < width; x++)
for (x = 0; x < width; x++)
{
u32 pixel;
std::memcpy(&pixel, row_pixels_ptr, sizeof(pixel));