mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-26 19:58:36 +01:00
dx9: Fix a crash on textures used as RT.
We don't always have a texture pointer.
This commit is contained in:
1 parent
0fc311a319
commit
d0dd2cbb31
1 file changed
+1
-1
@@ -1652,7 +1652,7 @@ void TextureCacheDX9::LoadTextureLevel(TexCacheEntry &entry, int level, int maxL
|
||||
entry.SetAlphaStatus(TexCacheEntry::STATUS_ALPHA_UNKNOWN);
|
||||
}
|
||||
|
||||
if (level == 0 && !replaceImages) {
|
||||
if (level == 0 && (!replaceImages || entry.texture == nullptr)) {
|
||||
// Create texture
|
||||
D3DPOOL pool = D3DPOOL_MANAGED;
|
||||
int usage = 0;
|
||||
|
||||
Reference in new issue
Block a user