mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
D3D11 texture replacement: Support more mip levels. Fixes crash in texture pack.
Fixes #19312
This commit is contained in:
parent
c737eca1a7
commit
0b76d443e2
@ -274,8 +274,8 @@ void TextureCacheD3D11::BuildTexture(TexCacheEntry *const entry) {
|
||||
ID3D11Resource *texture = DxTex(entry);
|
||||
_assert_(texture == nullptr);
|
||||
|
||||
// The PSP only supports 8 mip levels, but we support 12 in the texture replacer (4k textures down to 1).
|
||||
D3D11_SUBRESOURCE_DATA subresData[12]{};
|
||||
// The PSP only supports 8 mip levels, but we support more in the texture replacer. 20 will never run out.
|
||||
D3D11_SUBRESOURCE_DATA subresData[20]{};
|
||||
|
||||
if (plan.depth == 1) {
|
||||
// We don't yet have mip generation, so clamp the number of levels to the ones we can load directly.
|
||||
|
Loading…
Reference in New Issue
Block a user