Browse Source

Fix blit to 2D texture layer on D3D11 (#1371)

Hugo Amnov 7 years ago
parent
commit
1a94d2eb1c
1 changed files with 2 additions and 8 deletions
  1. 2 8
      src/renderer_d3d11.cpp

+ 2 - 8
src/renderer_d3d11.cpp

@@ -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