In the presentCallback function,
ComPtr<ID3D11DeviceContext> ctx;
ComPtr<ID3D11Multithread> multithread;
hr = ctx.As(&multithread);
if (hr != S_OK) throw std::system_error(hr, std::system_category());
multithread->SetMultithreadProtected(true);
the returned HRESULT is 0x80004002, which means E_NOINTERFACE error. Any way to solve this problem?
https://github.com/umautobots/GTAVisionExport/blob/master/native/src/main.cpp#L276
In the presentCallback function,
ComPtr<ID3D11DeviceContext> ctx;ComPtr<ID3D11Multithread> multithread;hr = ctx.As(&multithread);if (hr != S_OK) throw std::system_error(hr, std::system_category());multithread->SetMultithreadProtected(true);the returned HRESULT is 0x80004002, which means E_NOINTERFACE error. Any way to solve this problem?
https://github.com/umautobots/GTAVisionExport/blob/master/native/src/main.cpp#L276