mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 18:45:54 -05:00
Cleanup.
This commit is contained in:
parent
756e8c58f0
commit
f3c6cb23e8
2 changed files with 2 additions and 5 deletions
|
@ -1516,10 +1516,7 @@ data.NumQualityLevels = 0;
|
|||
const bool bufferOnly = 0 != (texture.m_flags&BGFX_TEXTURE_RT_BUFFER_ONLY);
|
||||
if (!bufferOnly)
|
||||
{
|
||||
texture.setState(m_commandList, D3D12_RESOURCE_STATES(0)
|
||||
| D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE
|
||||
// | D3D12_RESOURCE_STATE_DEPTH_READ
|
||||
);
|
||||
texture.setState(m_commandList, D3D12_RESOURCE_STATE_DEPTH_READ);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -341,7 +341,7 @@ namespace bgfx { namespace d3d12
|
|||
|
||||
void shutdown()
|
||||
{
|
||||
finish();
|
||||
finish(UINT64_MAX, true);
|
||||
|
||||
DX_RELEASE(m_fence, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue