mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-02-26 16:44:00 -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);
|
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
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue