d3d12: Fix pitch in COMPRESSED_DXT23/DXT45

Make pm_zcull.ppu.elf renders correctly.
This commit is contained in:
raven02 authored and Vincent Lejeune committed 2015-08-12 00:26:53 +02:00
1 parent 24c23dc5f6
commit cf27d4c2ca
1 file changed
+2 -2
+2 -2
View File
@@ -201,12 +201,12 @@ ID3D12Resource *uploadSingleTexture(
case CELL_GCM_TEXTURE_COMPRESSED_DXT23:
blockSizeInByte = 16;
blockWidthInPixel = 4, blockHeightInPixel = 4;
srcPitch = w * 8;
srcPitch = w * 4;
break;
case CELL_GCM_TEXTURE_COMPRESSED_DXT45:
blockSizeInByte = 16;
blockWidthInPixel = 4, blockHeightInPixel = 4;
srcPitch = w * 8;
srcPitch = w * 4;
break;
case CELL_GCM_TEXTURE_G8B8:
blockSizeInByte = 2;