diff options
author | Axel Davy <[email protected]> | 2016-10-20 00:00:57 +0200 |
---|---|---|
committer | Axel Davy <[email protected]> | 2016-12-20 23:44:20 +0100 |
commit | 503d72902955441425fa7f612026c0188c4cc0ac (patch) | |
tree | 9f6352d6e43fff3f95ca472d5f44f7a475be864c /src | |
parent | 9be94d5c1ac42bd39b9774db9de507c947ceb8f2 (diff) |
st/nine: Fix bad light initialization in stateblocks
src was initialized instead of dst.
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/nine/stateblock9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/stateblock9.c b/src/gallium/state_trackers/nine/stateblock9.c index 16e60ef9339..a2b281ed99a 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; } |