mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 11:13:44 +01:00
Fix error when disabled.
We want to return a reference here, so let's always return.
This commit is contained in:
1 parent
450554450f
commit
329be68f57
1 file changed
+1
-3
@@ -200,10 +200,8 @@ u32 TextureReplacer::ComputeHash(u32 addr, int bufw, int w, int h, GETextureForm
|
||||
}
|
||||
|
||||
ReplacedTexture &TextureReplacer::FindReplacement(u64 cachekey, u32 hash, int w, int h) {
|
||||
_assert_msg_(G3D, enabled_, "Replacement not enabled");
|
||||
|
||||
// Only actually replace if we're replacing. We might just be saving.
|
||||
if (!g_Config.bReplaceTextures) {
|
||||
if (!Enabled() || !g_Config.bReplaceTextures) {
|
||||
return none_;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user