st/nine: fix wrong variable reset
authorAxel Davy <axel.davy@ens.fr>
Mon, 24 Nov 2014 23:38:08 +0000 (00:38 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 26 Nov 2014 20:09:12 +0000 (20:09 +0000)
Error detected by Coverity (COPY_PASTE_ERROR)

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: David Heidelberg <david@ixit.cz>
src/gallium/state_trackers/nine/nine_state.c

index 0215d08080801c0a36aafa856d04bbd745d460f3..6924449cb7ef51acb713f181c53107d96de47da5 100644 (file)
@@ -400,7 +400,7 @@ update_constants(struct NineDevice9 *device, unsigned shader_type)
         const_i = &device->state.ps_const_i[0][0];
 
         dirty_b = device->state.changed.ps_const_b;
-        device->state.changed.vs_const_b = 0;
+        device->state.changed.ps_const_b = 0;
         const_b = device->state.ps_const_b;
         b_true = device->ps_bool_true;