diff --git a/src/renderer_d3d11.cpp b/src/renderer_d3d11.cpp index 794c369c2..824903f11 100644 --- a/src/renderer_d3d11.cpp +++ b/src/renderer_d3d11.cpp @@ -4873,7 +4873,7 @@ namespace bgfx { namespace d3d11 for (uint32_t ii = _layer; ii < _numLayers; ++ii) { const UINT resource = _mip + (ii * m_numMips); - deviceCtx->ResolveSubresource(m_texture2d, resource, m_rt, resource, s_textureFormat[m_textureFormat].m_fmt); + deviceCtx->ResolveSubresource(m_texture2d, resource, m_rt, resource, s_textureFormat[m_textureFormat].m_fmtSrv); } } diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index a15b0a6a8..a5780c782 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -5210,7 +5210,7 @@ namespace bgfx { namespace d3d12 , resource , m_ptr , resource - , s_textureFormat[m_textureFormat].m_fmt + , s_textureFormat[m_textureFormat].m_fmtSrv ); }