Remove some unnecessary error handling paths

This commit is contained in:
Henrik Rydgard committed 2017-02-21 11:29:51 +01:00
1 parent 31dd8fdc39
commit f772066c54
6 files changed
+20 -48

No files matched your search

+1 -5
View File
@@ -745,11 +745,7 @@ void TextureCacheVulkan::LoadTextureLevel(TexCacheEntry &entry, uint8_t *writePt
decPitch = w * bpp;
}
bool decSuccess = DecodeTextureLevel((u8 *)pixelData, decPitch, tfmt, clutformat, texaddr, level, bufw, false);
if (!decSuccess) {
memset(writePtr, 0, rowPitch * h);
return;
}
DecodeTextureLevel((u8 *)pixelData, decPitch, tfmt, clutformat, texaddr, level, bufw, false);
gpuStats.numTexturesDecoded++;
if (scaleFactor > 1) {