diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2013-02-20 14:18:21 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2013-02-20 14:18:21 -0600 |
| commit | b7fae1febb77629032122c710ac3a882c309ffdf (patch) | |
| tree | c77a84d3dac0a80dc2e3728ea5fa11043b5dbe55 /Source | |
| parent | 6e6d8af6ddaddeeaf89be2f8b6920b913488f0c6 (diff) | |
Fix my DX11 texture-related failure..
Fixes issue 6026. (probably)
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp index 844cf24b47..c0474e5c67 100644 --- a/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoDX11/Src/TextureCache.cpp @@ -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; } |
