Vitaly Budovski : wined3d: Implemented WINED3DRS_SCISSORTESTENABLE.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Feb 28 06:08:24 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 5c8c0059abe7715853d9a9ef28eb5a3cc75e988f
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=5c8c0059abe7715853d9a9ef28eb5a3cc75e988f

Author: Vitaly Budovski <vbudovsk at cs.rmit.edu.au>
Date:   Sat Feb 25 20:57:31 2006 +1100

wined3d: Implemented WINED3DRS_SCISSORTESTENABLE.

---

 dlls/wined3d/device.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 4bd1949..7130c55 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3674,6 +3674,17 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
         }
         break;
     }
+    case WINED3DRS_SCISSORTESTENABLE :
+    {
+        if(Value) {
+            glEnable(GL_SCISSOR_TEST);
+            checkGLcall("glEnable(GL_SCISSOR_TEST)");
+        } else {
+            glDisable(GL_SCISSOR_TEST);
+            checkGLcall("glDisable(GL_SCISSOR_TEST)");
+        }
+        break;
+    }
     case WINED3DRS_SLOPESCALEDEPTHBIAS :
     {
         if(Value) {
@@ -3711,7 +3722,6 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
     case WINED3DRS_POSITIONORDER             :
     case WINED3DRS_NORMALORDER               :
     /* Direct3D9 render states */
-    case WINED3DRS_SCISSORTESTENABLE :
     case WINED3DRS_MINTESSELLATIONLEVEL :
     case WINED3DRS_MAXTESSELLATIONLEVEL :
     case WINED3DRS_ADAPTIVETESS_X :




More information about the wine-cvs mailing list