1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 22:24:15 +01:00

[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

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();
}