fixed Texture::get_data for depth buffer textures in d3d11

This commit is contained in:
Noel Berry 2021-02-22 21:50:53 -08:00
parent 77f551f65e
commit fb21ec869d

View File

@ -230,15 +230,6 @@ namespace Blah
{ {
HRESULT hr; HRESULT hr;
// bounds
D3D11_BOX box;
box.left = 0;
box.right = m_width;
box.top = 0;
box.bottom = m_height;
box.front = 0;
box.back = 1;
// create staging texture // create staging texture
if (!staging) if (!staging)
{ {
@ -268,7 +259,7 @@ namespace Blah
staging, 0, staging, 0,
0, 0, 0, 0, 0, 0,
texture, 0, texture, 0,
&box); nullptr);
// get data // get data
D3D11_MAPPED_SUBRESOURCE map; D3D11_MAPPED_SUBRESOURCE map;