mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-07-08 16:50:44 +00:00
Check for errors creating streamout query
This commit is contained in:
@@ -2241,7 +2241,10 @@ bool WrappedID3D11DeviceContext::Serialise_SOSetTargets(SerialiserType &ser, UIN
|
||||
qdesc.MiscFlags = 0;
|
||||
qdesc.Query = queryTypes[b];
|
||||
|
||||
m_pDevice->GetReal()->CreateQuery(&qdesc, &m_StreamOutCounters[id].query);
|
||||
HRESULT hr = m_pDevice->GetReal()->CreateQuery(&qdesc, &m_StreamOutCounters[id].query);
|
||||
|
||||
if(FAILED(hr))
|
||||
RDCERR("Couldn't create streamout query: %s", ToStr(hr).c_str());
|
||||
|
||||
m_pRealContext->Begin(m_StreamOutCounters[id].query);
|
||||
m_StreamOutCounters[id].running = true;
|
||||
|
||||
Reference in New Issue
Block a user