mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
st/nine: Fix bad light initialization in stateblocks
src was initialized instead of dst. Signed-off-by: Axel Davy <axel.davy@ens.fr>
This commit is contained in:
parent
9be94d5c1a
commit
503d729029
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue