This commit is contained in:
Branimir Karadžić 2015-08-03 22:39:50 -07:00
parent 756e8c58f0
commit f3c6cb23e8
2 changed files with 2 additions and 5 deletions

View file

@ -1516,10 +1516,7 @@ data.NumQualityLevels = 0;
const bool bufferOnly = 0 != (texture.m_flags&BGFX_TEXTURE_RT_BUFFER_ONLY); const bool bufferOnly = 0 != (texture.m_flags&BGFX_TEXTURE_RT_BUFFER_ONLY);
if (!bufferOnly) if (!bufferOnly)
{ {
texture.setState(m_commandList, D3D12_RESOURCE_STATES(0) texture.setState(m_commandList, D3D12_RESOURCE_STATE_DEPTH_READ);
| D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE
// | D3D12_RESOURCE_STATE_DEPTH_READ
);
} }
} }
} }

View file

@ -341,7 +341,7 @@ namespace bgfx { namespace d3d12
void shutdown() void shutdown()
{ {
finish(); finish(UINT64_MAX, true);
DX_RELEASE(m_fence, 0); DX_RELEASE(m_fence, 0);