diff options
author | Tiziano Bacocco <[email protected]> | 2015-01-21 00:41:11 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:19 +0100 |
commit | a1d369e804623663e78002c0101d668bd3d42762 (patch) | |
tree | 8152305061f1689c2320f526242dda87bfc05a3e /src/gallium/state_trackers/nine/device9.c | |
parent | 1543defc5ea8a17cf5558bb6468031f9c29b9a15 (diff) |
st/nine: Fix enabled lights in stateblocks
Reviewed-by: Axel Davy <[email protected]>
Signed-off-by: Tiziano Bacocco <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index fe251fe3ce0..c6bd052dc8f 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -1965,7 +1965,9 @@ NineDevice9_GetLightEnable( struct NineDevice9 *This, for (i = 0; i < state->ff.num_lights_active; ++i) if (state->ff.active_light[i] == Index) break; - *pEnable = i != state->ff.num_lights_active; + + *pEnable = i != state->ff.num_lights_active ? 128 : 0; // Taken from wine + return D3D_OK; } |