diff options
author | Axel Davy <axel.davy@ens.fr> | 2016-09-25 13:34:25 +0200 |
---|---|---|
committer | Axel Davy <axel.davy@ens.fr> | 2016-10-10 23:43:50 +0200 |
commit | f7dd27aed3045174eb91ec5a99c4c619504f6559 (patch) | |
tree | 16e0109019c7de2b5a811c8d3f5ed54c5c197bf2 /src/gallium/state_trackers | |
parent | 7afcbb49baa9b4e447d3806aaffcebc01103c965 (diff) | |
download | external_mesa3d-f7dd27aed3045174eb91ec5a99c4c619504f6559.zip external_mesa3d-f7dd27aed3045174eb91ec5a99c4c619504f6559.tar.gz external_mesa3d-f7dd27aed3045174eb91ec5a99c4c619504f6559.tar.bz2 |
st/nine: Fix texbem
Error found with wine tests.
nine_shader was expecting another order
than the one device9 was using.
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/gallium/state_trackers')
-rw-r--r-- | src/gallium/state_trackers/nine/device9.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/nine/device9.c b/src/gallium/state_trackers/nine/device9.c index e2d4038..298af86 100644 --- a/src/gallium/state_trackers/nine/device9.c +++ b/src/gallium/state_trackers/nine/device9.c @@ -2751,10 +2751,10 @@ NineDevice9_SetTextureStageState( struct NineDevice9 *This, case D3DTSS_BUMPENVMAT00: bumpmap_index = 4 * Stage; break; - case D3DTSS_BUMPENVMAT10: + case D3DTSS_BUMPENVMAT01: bumpmap_index = 4 * Stage + 1; break; - case D3DTSS_BUMPENVMAT01: + case D3DTSS_BUMPENVMAT10: bumpmap_index = 4 * Stage + 2; break; case D3DTSS_BUMPENVMAT11: |