Get rid of the bool, not worth it.

This commit is contained in:
Henrik Rydgård committed 2023-01-10 10:23:29 +01:00
1 parent 7df9545195
commit 00c44ea799
8 files changed
+18 -15

No files matched your search

+1 -1
View File
@@ -1327,7 +1327,7 @@ bool PPGeImage::Load() {
unsigned char *textureData;
int success;
if (filename_.empty()) {
success = pngLoadPtr(Memory::GetPointerRange(png_, size_), size_, &width_, &height_, &textureData);
success = pngLoadPtr(Memory::GetPointerRange(png_, (u32)size_), size_, &width_, &height_, &textureData);
} else {
std::vector<u8> pngData;
if (pspFileSystem.ReadEntireFile(filename_, pngData) < 0) {