Fix my DX11 texture-related failure..

Fixes issue 6026. (probably)
This commit is contained in:
Jordan Woyak 2013-02-20 14:18:21 -06:00
parent 6e6d8af6dd
commit b7fae1febb
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,9 @@ TextureCache::TCacheEntryBase* TextureCache::CreateTexture(unsigned int width,
D3D::SetDebugObjectName((ID3D11DeviceChild*)entry->texture->GetSRV(), "shader resource view of a texture of the TextureCache");
SAFE_RELEASE(pTexture);
if (tex_levels != 1)
entry->Load(width, height, expanded_width, 0);
return entry;
}