ddraw: Implement GetRenderState for D3DRENDERSTATE_TEXTUREADDRESS[U/V].

This commit is contained in:
Stefan Dösinger 2006-10-16 12:40:51 +02:00 committed by Alexandre Julliard
parent 306048bdeb
commit 1d65ade5fa
1 changed files with 23 additions and 0 deletions

View File

@ -2135,6 +2135,29 @@ IDirect3DDeviceImpl_7_GetRenderState(IDirect3DDevice7 *iface,
return hr;
}
case D3DRENDERSTATE_TEXTUREADDRESSU:
case D3DRENDERSTATE_TEXTUREADDRESSV:
case D3DRENDERSTATE_TEXTUREADDRESS:
{
WINED3DTEXTURESTAGESTATETYPE TexStageStateType;
if (RenderStateType == D3DRENDERSTATE_TEXTUREADDRESS)
{
TexStageStateType = WINED3DTSS_ADDRESS;
}
else if (RenderStateType == D3DRENDERSTATE_TEXTUREADDRESSU)
{
TexStageStateType = WINED3DTSS_ADDRESSU;
}
else
{
TexStageStateType = WINED3DTSS_ADDRESSV;
}
return IWineD3DDevice_GetTextureStageState(This->wineD3DDevice,
0, TexStageStateType,
Value);
}
default:
/* FIXME: Unhandled: D3DRENDERSTATE_STIPPLEPATTERN00 - 31 */
return IWineD3DDevice_GetRenderState(This->wineD3DDevice,