Commit c51bc826 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Properly handle sampler states.

parent 04808cc5
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment