From bd71f256e58ba7c136385dd98a3184b94429254e Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Wed, 21 Mar 2018 03:26:31 +0100 Subject: [PATCH] [d3d11] Fixed constant buffer binding update --- src/d3d11/d3d11_context.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 3e9702fae..522a6206d 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -2504,7 +2504,9 @@ namespace dxvk { constantCount = pNumConstants [i]; } - if (Bindings[StartSlot + i].buffer != newBuffer) { + if (Bindings[StartSlot + i].buffer != newBuffer + || Bindings[StartSlot + i].constantOffset != constantOffset + || Bindings[StartSlot + i].constantCount != constantCount) { Bindings[StartSlot + i].buffer = newBuffer; Bindings[StartSlot + i].constantOffset = constantOffset; Bindings[StartSlot + i].constantCount = constantCount;