mirror of
https://github.com/stenzek/duckstation.git
synced 2024-11-26 23:50:31 +00:00
Image: Fix uninitialized read without SIMD
This commit is contained in:
parent
f6f913fe4f
commit
f22cf86de3
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user