Set non-replay state to BackgroundCapturing

This commit is contained in:
Jake Turner
2022-07-01 14:38:05 +01:00
committed by Baldur Karlsson
parent 4dc80c1793
commit 02103a9669
+9
View File
@@ -37,6 +37,15 @@ WrappedMTLDevice::WrappedMTLDevice(MTL::Device *realMTLDevice, ResourceId objId)
{
AllocateObjCBridge(this);
m_Device = this;
if(RenderDoc::Inst().IsReplayApp())
{
}
else
{
m_State = CaptureState::BackgroundCapturing;
}
threadSerialiserTLSSlot = Threading::AllocateTLSSlot();
m_ResourceManager = new MetalResourceManager(m_State, this);