dx9: Fix a crash on textures used as RT.

We don't always have a texture pointer.
This commit is contained in:
Unknown W. Brackets
2014-12-18 22:51:46 -08:00
parent 0fc311a319
commit d0dd2cbb31

View File

@@ -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;