Skip to content

HRESULT 0x80004002 #37

@cfzd

Description

@cfzd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions