mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 19:45:20 +00:00
commit
a3a6a8a9e0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue