Stefan Dösinger : ddraw: Implement GetRenderState for D3DRENDERSTATE_TEXTUREADDRESS[U/V].

Alexandre Julliard julliard at wine.codeweavers.com
Mon Oct 16 13:53:40 CDT 2006


Module: wine
Branch: master
Commit: 1d65ade5fa5641a96c15e5a00b2243d73583f6b6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=1d65ade5fa5641a96c15e5a00b2243d73583f6b6

Author: Stefan Dösinger <stefandoesinger at gmx.at>
Date:   Mon Oct 16 12:40:51 2006 +0200

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

---

 dlls/ddraw/device.c |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/dlls/ddraw/device.c b/dlls/ddraw/device.c
index 09d2ca9..8b519a6 100644
--- a/dlls/ddraw/device.c
+++ b/dlls/ddraw/device.c
@@ -2135,6 +2135,29 @@ IDirect3DDeviceImpl_7_GetRenderState(IDi
             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,




More information about the wine-cvs mailing list