mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-17 20:52:36 +01:00
Fix blit to 2D texture layer on D3D11 (#1371)
This commit is contained in:
committed by
Branimir Karadžić
parent
9630fa8e02
commit
1a94d2eb1c
@@ -5397,14 +5397,8 @@ namespace bgfx { namespace d3d11
|
||||
box.bottom = blit.m_srcY + height;
|
||||
box.back = 1;
|
||||
|
||||
const uint32_t srcZ = TextureD3D11::TextureCube == src.m_type
|
||||
? blit.m_srcZ
|
||||
: 0
|
||||
;
|
||||
const uint32_t dstZ = TextureD3D11::TextureCube == dst.m_type
|
||||
? blit.m_dstZ
|
||||
: 0
|
||||
;
|
||||
const uint32_t srcZ = blit.m_srcZ;
|
||||
const uint32_t dstZ = blit.m_dstZ;
|
||||
|
||||
deviceCtx->CopySubresourceRegion(dst.m_ptr
|
||||
, dstZ*dst.m_numMips+blit.m_dstMip
|
||||
|
||||
Reference in New Issue
Block a user