mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Disable texture replacement on Qt.
This commit is contained in:
parent
bed82da352
commit
c4b27525e0
1 changed files with 8 additions and 0 deletions
|
@ -237,6 +237,9 @@ void TextureReplacer::PopulateReplacement(ReplacedTexture *result, u64 cachekey,
|
|||
level.fmt = ReplacedTextureFormat::F_8888;
|
||||
level.file = filename;
|
||||
|
||||
#ifdef USING_QT_UI
|
||||
ERROR_LOG(G3D, "Replacement texture loading not implemented for Qt");
|
||||
#else
|
||||
png_image png = {};
|
||||
png.version = PNG_IMAGE_VERSION;
|
||||
FILE *fp = File::OpenCFile(filename, "rb");
|
||||
|
@ -251,6 +254,7 @@ void TextureReplacer::PopulateReplacement(ReplacedTexture *result, u64 cachekey,
|
|||
}
|
||||
fclose(fp);
|
||||
png_image_free(&png);
|
||||
#endif
|
||||
}
|
||||
|
||||
// TODO: Could calculate alpha status, or maybe from ini? Let's ignore for now.
|
||||
|
@ -427,6 +431,9 @@ void ReplacedTexture::Load(int level, void *out, int rowPitch) {
|
|||
|
||||
const ReplacedTextureLevel &info = levels_[level];
|
||||
|
||||
#ifdef USING_QT_UI
|
||||
ERROR_LOG(G3D, "Replacement texture loading not implemented for Qt");
|
||||
#else
|
||||
png_image png = {};
|
||||
png.version = PNG_IMAGE_VERSION;
|
||||
png.format = PNG_FORMAT_RGBA;
|
||||
|
@ -443,4 +450,5 @@ void ReplacedTexture::Load(int level, void *out, int rowPitch) {
|
|||
|
||||
fclose(fp);
|
||||
png_image_free(&png);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue