Mesa (10.4): st/nine: fix wrong variable reset

Emil Velikov evelikov at kemper.freedesktop.org
Wed Dec 3 23:44:47 UTC 2014


Module: Mesa
Branch: 10.4
Commit: 360872a45eaa0d785b95fcc780347ed2324fee68
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=360872a45eaa0d785b95fcc780347ed2324fee68

Author: Axel Davy <axel.davy at ens.fr>
Date:   Tue Nov 25 00:38:08 2014 +0100

st/nine: fix wrong variable reset

Error detected by Coverity (COPY_PASTE_ERROR)

Cc: "10.4" <mesa-stable at lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy at ens.fr>
Signed-off-by: David Heidelberg <david at ixit.cz>
(cherry picked from commit 614d9387c796f384a26c85e156768d71bb17baeb)

---

 src/gallium/state_trackers/nine/nine_state.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/nine_state.c b/src/gallium/state_trackers/nine/nine_state.c
index 0215d08..6924449 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;
 




More information about the mesa-commit mailing list