Skip to content
Commit 3793ce36 authored by Andrii Simiklit's avatar Andrii Simiklit Committed by Jose Fonseca
Browse files

dxgitrace: Fix a thread safety of a d3d11 CreateBuffer method.



According to directx 11 spec all device methods are thread safe:
   "All ID3D11Device interface methods are free-threaded, which means
    it is safe to have multiple threads call the functions
    at the same time."

But all device-context methods according to directx 11 spec:
   "Any context – immediate or deferred – can be used on any thread
    as long as the context is only used in one thread at a time."

So without this fix WrapID3D11Device*::CreateBuffer methods are not
thread safe. It could lead to the crash in some games which are
create buffers in different threads.

Suggested-by: default avatarJose Fonseca <jfonseca@vmware.com>
Signed-off-by: default avatarAndrii Simiklit <andrii.simiklit@globallogic.com>
parent da21fd01
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment