wined3d: Implemented WINED3DRS_EDGEANTIALIAS
Vitaly Budovski
vbudovsk at cs.rmit.edu.au
Tue Jan 31 19:29:00 CST 2006
wined3d: Implemented WINED3DRS_EDGEANTIALIAS
---
dlls/wined3d/device.c | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
-------------- next part --------------
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index fb5a065..3670f6f 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3601,6 +3601,21 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
break;
}
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 :
--
1.0.4
More information about the wine-patches
mailing list