1
0
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:
Philip Rebohle 2018-03-11 20:25:09 +01:00
parent bbbc552868
commit 4eacff21e9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -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