From: Axel Davy Date: Mon, 24 Nov 2014 23:38:08 +0000 (+0100) Subject: st/nine: fix wrong variable reset X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=614d9387c796f384a26c85e156768d71bb17baeb;p=mesa.git st/nine: fix wrong variable reset Error detected by Coverity (COPY_PASTE_ERROR) Cc: "10.4" Reviewed-by: Ilia Mirkin Signed-off-by: Axel Davy Signed-off-by: David Heidelberg --- diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c index 0215d080808..6924449cb7e 100644 --- a/src/gallium/state_trackers/nine/nine_state.c +++ b/src/gallium/state_trackers/nine/nine_state.c @@ -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;