[d3d11] Fixed flush order

This commit is contained in:
Philip Rebohle 2018-01-21 02:21:38 +01:00
parent b923a2004f
commit 51e89f00be
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 4 additions and 2 deletions

View File

@ -41,11 +41,11 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D11ImmediateContext::Flush() {
EmitCsChunk();
m_parent->FlushInitContext();
m_drawCount = 0;
// Add commands to flush the threaded
// context, then flush the command list
EmitCs([dev = m_device] (DxvkContext* ctx) {
dev->submitCommandList(
ctx->endRecording(),
@ -54,6 +54,8 @@ namespace dxvk {
ctx->beginRecording(
dev->createCommandList());
});
EmitCsChunk();
}