From 48cb7c1c52c22ce5c885b8fd68c9c938e90bbd10 Mon Sep 17 00:00:00 2001 From: espes Date: Tue, 25 Aug 2015 14:45:32 +1000 Subject: [PATCH] Don't accidentally clear vertex shader constant dirty flag --- hw/xbox/nv2a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xbox/nv2a.c b/hw/xbox/nv2a.c index 520507cb59..c277c4d926 100644 --- a/hw/xbox/nv2a.c +++ b/hw/xbox/nv2a.c @@ -4525,7 +4525,7 @@ static void pgraph_method(NV2AState *d, assert(const_load < NV2A_VERTEXSHADER_CONSTANTS); VertexShaderConstant *constant = &pg->constants[const_load]; - constant->dirty = (parameter != constant->data[slot%4]); + constant->dirty |= (parameter != constant->data[slot%4]); constant->data[slot%4] = parameter; if (slot % 4 == 3) {