1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 02:52:10 +01:00

[d3d11] Fixed constant buffer binding update

This commit is contained in:
Philip Rebohle 2018-03-21 03:26:31 +01:00
parent 4518b1b76e
commit bd71f256e5
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

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