st/nine: Fix texbem
authorAxel Davy <axel.davy@ens.fr>
Sun, 25 Sep 2016 11:34:25 +0000 (13:34 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:50 +0000 (23:43 +0200)
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>
src/gallium/state_trackers/nine/device9.c

index e2d4038e86bf12c4a1a51473fae551dbb1b3731e..298af86e484590e2af6437174b3d25e799c5041f 100644 (file)
@@ -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: