mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-25 16:54:15 +01:00
[dxvk] Flush initialization context unconditionally
An application might need to wait for a resource to become available just after it has been created, in which case its initialization commands might not have been dispatched yet. If no rendering commands were issued on the immediate context prior to the wait operation, WaitForResource would stall indefinitely.
This commit is contained in:
parent
bbbc552868
commit
4eacff21e9
@ -42,8 +42,9 @@ namespace dxvk {
|
||||
|
||||
|
||||
void STDMETHODCALLTYPE D3D11ImmediateContext::Flush() {
|
||||
if (m_csChunk->commandCount() != 0) {
|
||||
m_parent->FlushInitContext();
|
||||
|
||||
if (m_csChunk->commandCount() != 0) {
|
||||
m_drawCount = 0;
|
||||
|
||||
// Add commands to flush the threaded
|
||||
|
Loading…
x
Reference in New Issue
Block a user