[WINED3D 5/6] Set correct default for DMAPOFFSET sampler state.

Ivan Gyurdiev ivg231 at gmail.com
Sat Oct 28 18:55:03 CDT 2006


The correct default value is 0, not 256.
Discovered by the stateblock test for textures.

-------------- next part --------------
---
 dlls/wined3d/stateblock.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/stateblock.c b/dlls/wined3d/stateblock.c
index 084b43d..e7221a2 100644
--- a/dlls/wined3d/stateblock.c
+++ b/dlls/wined3d/stateblock.c
@@ -1020,7 +1020,7 @@ static HRESULT  WINAPI IWineD3DStateBloc
         This->samplerState[i][WINED3DSAMP_MAXANISOTROPY    ] = 1;
         This->samplerState[i][WINED3DSAMP_SRGBTEXTURE      ] = 0; /* TODO: Gamma correction value*/
         This->samplerState[i][WINED3DSAMP_ELEMENTINDEX     ] = 0; /* TODO: Indicates which element of a  multielement texture to use */
-        This->samplerState[i][WINED3DSAMP_DMAPOFFSET       ] = 256; /* TODO: Vertex offset in the presampled displacement map */
+        This->samplerState[i][WINED3DSAMP_DMAPOFFSET       ] = 0; /* TODO: Vertex offset in the presampled displacement map */
     }
 
     /* Under DirectX you can have texture stage operations even if no texture is
-- 
1.4.2.4



More information about the wine-patches mailing list