Vitaly Budovski : wined3d: Implemented WINED3DRS_EDGEANTIALIAS.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 3 05:39:27 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 4279bcc5a8b0a533ccb5393aec5b974e2d0b5679
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4279bcc5a8b0a533ccb5393aec5b974e2d0b5679
Author: Vitaly Budovski <vbudovsk at cs.rmit.edu.au>
Date: Fri Feb 3 12:33:26 2006 +0100
wined3d: Implemented WINED3DRS_EDGEANTIALIAS.
---
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 ab3cc6b..09343fa 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3598,6 +3598,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
break;
/* Unhandled yet...! */
case WINED3DRS_EDGEANTIALIAS :
+ {
+ 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_WRAP0 :
case WINED3DRS_WRAP1 :
case WINED3DRS_WRAP2 :
More information about the wine-cvs
mailing list