mirror of
https://github.com/NoelFB/blah.git
synced 2024-11-28 16:58:57 +08:00
fixed Texture::get_data for depth buffer textures in d3d11
This commit is contained in:
parent
77f551f65e
commit
fb21ec869d
|
@ -230,15 +230,6 @@ namespace Blah
|
|||
{
|
||||
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
|
||||
if (!staging)
|
||||
{
|
||||
|
@ -268,7 +259,7 @@ namespace Blah
|
|||
staging, 0,
|
||||
0, 0, 0,
|
||||
texture, 0,
|
||||
&box);
|
||||
nullptr);
|
||||
|
||||
// get data
|
||||
D3D11_MAPPED_SUBRESOURCE map;
|
||||
|
|
Loading…
Reference in New Issue
Block a user