[Mesa-dev] [PATCH 08/36] st/nine: Fix bad light initialization in stateblocks
Axel Davy
axel.davy at ens.fr
Wed Dec 7 22:30:31 UTC 2016
src was initialized instead of dst.
Signed-off-by: Axel Davy <axel.davy at ens.fr>
---
src/gallium/state_trackers/nine/stateblock9.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c
index 16e60ef..a2b281e 100644
--- a/src/gallium/state_trackers/nine/stateblock9.c
+++ b/src/gallium/state_trackers/nine/stateblock9.c
@@ -326,8 +326,8 @@ nine_state_copy_common(struct NineDevice9 *device,
* "dst->ff.light[i] = src->ff.light[i];" later,
* which is what we want in that case. */
if (mask != dst) {
- for (i = src->ff.num_lights; i < num_lights; ++i)
- src->ff.light[i].Type = (D3DLIGHTTYPE)NINED3DLIGHT_INVALID;
+ for (i = dst->ff.num_lights; i < num_lights; ++i)
+ dst->ff.light[i].Type = (D3DLIGHTTYPE)NINED3DLIGHT_INVALID;
}
dst->ff.num_lights = num_lights;
}
--
2.10.2
More information about the mesa-dev
mailing list