diff options
author | Axel Davy <[email protected]> | 2015-01-07 16:34:12 +0100 |
---|---|---|
committer | Axel Davy <[email protected]> | 2015-02-06 00:07:18 +0100 |
commit | 65ce2b2848eafe0d51375edca15fbb91956668e4 (patch) | |
tree | 7025eaea3fa9553f506e5cc8d608fe07fc24ae1b /src/gallium/state_trackers/nine/device9.c | |
parent | 2d2286d17c78af95c4bb5f56ef1b58a09eef7260 (diff) |
st/nine: Commit sampler views again if srgb state changed.
This fixes a wine test and some minor visual issues on some games.
The patch is not optimal, there is probably a more efficient way to
fix this issue, but the code there already has some innefficiencies.
There is plans to rewrite that part of the code to make it more
efficient.
Reviewed-by: Tiziano Bacocco <[email protected]>
Signed-off-by: Axel Davy <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/nine/device9.c')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index 656f48860fd..b7e83a4bab9 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -2327,6 +2327,9 @@ NineDevice9_SetSamplerState( struct NineDevice9 *This, state->changed.group |= NINE_STATE_SAMPLER; state->changed.sampler[Sampler] |= 1 << Type; + if (Type == D3DSAMP_SRGBTEXTURE) + state->changed.srgb = TRUE; + return D3D_OK; } |