mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-19 19:36:38 +00:00
D3D11: Fix initialization of mipmaps.
This commit is contained in:
parent
01076dd959
commit
022de0d45a
@ -714,7 +714,7 @@ Texture *D3D11DrawContext::CreateTexture(const TextureDesc &desc) {
|
||||
int w = desc.width;
|
||||
int h = desc.height;
|
||||
for (int i = 0; i < (int)desc.initData.size(); i++) {
|
||||
initData[i].pSysMem = desc.initData[0];
|
||||
initData[i].pSysMem = desc.initData[i];
|
||||
initData[i].SysMemPitch = (UINT)(w * DataFormatSizeInBytes(desc.format));
|
||||
initData[i].SysMemSlicePitch = (UINT)(w * h * DataFormatSizeInBytes(desc.format));
|
||||
w /= 2;
|
||||
|
Loading…
Reference in New Issue
Block a user