mirror of https://github.com/PCSX2/pcsx2.git
GS-DX11: Fix D3D11_BOX parameters (missing "front")
This commit is contained in:
parent
01179c69ec
commit
e4cc0e04e8
|
@ -46,7 +46,8 @@ bool GSTexture11::Update(const GSVector4i& r, const void* data, int pitch, int l
|
|||
g_perfmon.Put(GSPerfMon::TextureUploads, 1);
|
||||
|
||||
const u32 bs = GetCompressedBlockSize();
|
||||
const D3D11_BOX box = {Common::AlignDownPow2((u32)r.left, bs), Common::AlignDownPow2((u32)r.top, bs),
|
||||
|
||||
const D3D11_BOX box = {Common::AlignDownPow2((u32)r.left, bs), Common::AlignDownPow2((u32)r.top, bs), 0U,
|
||||
Common::AlignUpPow2((u32)r.right, bs), Common::AlignUpPow2((u32)r.bottom, bs), 1U};
|
||||
const UINT subresource = layer; // MipSlice + (ArraySlice * MipLevels).
|
||||
|
||||
|
|
Loading…
Reference in New Issue