Commit 1d65ade5 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

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

parent 306048bd
......@@ -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,
......
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