Vitaly Budovski : wined3d: Implemented WINED3DRS_MULTISAMPLEANTIALIAS.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Feb 3 05:39:26 CST 2006


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

Author: Vitaly Budovski <vbudovsk at cs.rmit.edu.au>
Date:   Fri Feb  3 12:31:02 2006 +0100

wined3d: Implemented WINED3DRS_MULTISAMPLEANTIALIAS.

---

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

diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 2ffeb1a..ab3cc6b 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3618,6 +3618,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
     TRACE("(%p)->(%d,%ld) Texture wraping not yet supported\n",This, State, Value);
     break;
     case WINED3DRS_MULTISAMPLEANTIALIAS      :
+    {
+        if (!GL_SUPPORT(ARB_MULTISAMPLE)) {
+            TRACE("Multisample antialiasing not supported\n");
+            break;
+        }
+
+        if(Value) {
+            glEnable(GL_MULTISAMPLE_ARB);
+            checkGLcall("glEnable(GL_MULTISAMPLE_ARB)");
+        } else {
+            glDisable(GL_MULTISAMPLE_ARB);
+            checkGLcall("glDisable(GL_MULTISAMPLE_ARB)");
+        }
+        break;
+    }
     case WINED3DRS_MULTISAMPLEMASK           :
     case WINED3DRS_PATCHEDGESTYLE            :
     case WINED3DRS_PATCHSEGMENTS             :




More information about the wine-cvs mailing list