mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-11 06:40:39 +00:00
commit
a3a6a8a9e0
@ -177,7 +177,7 @@ int cellPngDecDecodeData(u32 mainHandle, u32 subHandle, mem8_ptr_t data, const m
|
||||
case CELL_PNGDEC_RGB:
|
||||
case CELL_PNGDEC_RGBA:
|
||||
{
|
||||
const char nComponents = (CELL_PNGDEC_RGBA ? 4 : 3);
|
||||
const char nComponents = current_outParam.outputColorSpace == CELL_PNGDEC_RGBA ? 4 : 3;
|
||||
image_size *= nComponents;
|
||||
if (dataCtrlParam->outputBytesPerLine > width * nComponents) //check if we need padding
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user