From c51bc826e8112ff2cd5138576c7818cad987f616 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Tue, 6 Jan 2009 11:43:44 +0100 Subject: [PATCH] ddraw: Properly handle sampler states. --- dlls/ddraw/device.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c index 7efc66f5261..da0ca0ea2da 100644 --- a/dlls/ddraw/device.c +++ b/dlls/ddraw/device.c @@ -5095,6 +5095,23 @@ IDirect3DDeviceImpl_7_GetTextureStageState(IDirect3DDevice7 *iface, WINED3DSAMP_ADDRESSV, State); break; + + case D3DTSS_BORDERCOLOR: + hr = IWineD3DDevice_GetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_BORDERCOLOR, State); + break; + + case D3DTSS_MIPMAPLODBIAS: + hr = IWineD3DDevice_GetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_MIPMAPLODBIAS, State); + break; + + case D3DTSS_MAXMIPLEVEL: + hr = IWineD3DDevice_GetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_MAXMIPLEVEL, State); + break; + + case D3DTSS_MAXANISOTROPY: + hr = IWineD3DDevice_GetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_MAXANISOTROPY, State); + break; + default: hr = IWineD3DDevice_GetTextureStageState(This->wineD3DDevice, Stage, @@ -5247,6 +5264,22 @@ IDirect3DDeviceImpl_7_SetTextureStageState(IDirect3DDevice7 *iface, State); break; + case D3DTSS_BORDERCOLOR: + hr = IWineD3DDevice_SetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_BORDERCOLOR, State); + break; + + case D3DTSS_MIPMAPLODBIAS: + hr = IWineD3DDevice_SetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_MIPMAPLODBIAS, State); + break; + + case D3DTSS_MAXMIPLEVEL: + hr = IWineD3DDevice_SetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_MAXMIPLEVEL, State); + break; + + case D3DTSS_MAXANISOTROPY: + hr = IWineD3DDevice_SetSamplerState(This->wineD3DDevice, Stage, WINED3DSAMP_MAXANISOTROPY, State); + break; + default: hr = IWineD3DDevice_SetTextureStageState(This->wineD3DDevice, Stage,