Stefan Dösinger : wined3d: Move WINED3DRS_ANTIALIAS to the state table.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Dec 11 10:34:57 CST 2006


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Sun Dec 10 23:21:03 2006 +0100

wined3d: Move WINED3DRS_ANTIALIAS to the state table.

---

 dlls/wined3d/device.c |    8 +-------
 dlls/wined3d/state.c  |    8 +++++++-
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index e6012f8..3c5b2b5 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3429,6 +3429,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl
     case WINED3DRS_DEPTHBIAS :
     case WINED3DRS_TEXTUREPERSPECTIVE    :
     case WINED3DRS_STIPPLEDALPHA    :
+    case WINED3DRS_ANTIALIAS :
         StateTable[STATE_RENDER(State)].apply(STATE_RENDER(State), This->stateBlock);
         break;
 
@@ -3439,13 +3440,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl
         return WINED3DERR_INVALIDCALL;
       }
 
-    case WINED3DRS_ANTIALIAS :
-    {
-        if (Value)
-            ERR(" Antialias not supported yet.\n");
-        break;
-    }
-
     case WINED3DRS_MULTISAMPLEMASK :
     {
         if(0xFFFFFFFF != Value)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index f55fd8c..c5fa7f3 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -1160,12 +1160,18 @@ static void state_stippledalpha(DWORD st
         ERR(" Stippled Alpha not supported yet.\n");
 }
 
+static void state_antialias(DWORD state, IWineD3DStateBlockImpl *stateblock) {
+    TRACE("Stub\n");
+    if (stateblock->renderState[WINED3DRS_ANTIALIAS])
+        ERR(" Antialias not supported yet.\n");
+}
+
 const struct StateEntry StateTable[] =
 {
       /* State name                                         representative,                                     apply function */
     { /* 0,  Undefined                              */      0,                                                  state_undefined     },
     { /* 1,  WINED3DRS_TEXTUREHANDLE                */      0 /* Handled in ddraw */,                           state_undefined     },
-    { /* 2,  WINED3DRS_ANTIALIAS                    */      STATE_RENDER(WINED3DRS_ANTIALIAS),                  state_unknown       },
+    { /* 2,  WINED3DRS_ANTIALIAS                    */      STATE_RENDER(WINED3DRS_ANTIALIAS),                  state_antialias     },
     { /* 3,  WINED3DRS_TEXTUREADDRESS               */      0 /* Handled in ddraw */,                           state_undefined     },
     { /* 4,  WINED3DRS_TEXTUREPERSPECTIVE           */      STATE_RENDER(WINED3DRS_TEXTUREPERSPECTIVE),         state_perspective   },
     { /* 5,  WINED3DRS_WRAPU                        */      STATE_RENDER(WINED3DRS_WRAPU),                      state_unknown       },




More information about the wine-cvs mailing list