wined3d: Implemented D3DRS_ANTIALIASEDLINEENABLE

Vitaly Budovski vbudovsk at cs.rmit.edu.au
Sat Feb 25 03:54:31 CST 2006


wined3d: Implemented D3DRS_ANTIALIASEDLINEENABLE

---

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

-------------- next part --------------
c4bab4835a76aea8d66b15e4a88810e8b2d53828
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index e2f9ab8..1a0852e 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3684,6 +3684,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
     case WINED3DRS_SCISSORTESTENABLE :
     case WINED3DRS_SLOPESCALEDEPTHBIAS :
     case WINED3DRS_ANTIALIASEDLINEENABLE :
+    {
+        if(Value) {
+            glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
+            glEnable(GL_BLEND);
+            checkGLcall("glEnable(GL_BLEND)");
+            glEnable(GL_LINE_SMOOTH);
+            checkGLcall("glEnable(GL_LINE_SMOOTH)");
+        } else {
+            glDisable(GL_BLEND);
+            checkGLcall("glDisable(GL_BLEND)");
+            glDisable(GL_LINE_SMOOTH);
+            checkGLcall("glDisable(GL_LINE_SMOOTH)");
+        }
+        break;
+    }
     case WINED3DRS_MINTESSELLATIONLEVEL :
     case WINED3DRS_MAXTESSELLATIONLEVEL :
     case WINED3DRS_ADAPTIVETESS_X :
-- 
1.0.4


More information about the wine-patches mailing list