Vitaly Budovski : wined3d: Implemented WINED3DRS_SLOPESCALEDEPTHBIAS.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Feb 28 06:08:22 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 4b10288b5b040ee96e0952c16d5ba4e3915830d6
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=4b10288b5b040ee96e0952c16d5ba4e3915830d6
Author: Vitaly Budovski <vbudovsk at cs.rmit.edu.au>
Date: Sat Feb 25 21:00:52 2006 +1100
wined3d: Implemented WINED3DRS_SLOPESCALEDEPTHBIAS.
---
dlls/wined3d/device.c | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index 7db6021..4bd1949 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -3674,6 +3674,20 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
}
break;
}
+ case WINED3DRS_SLOPESCALEDEPTHBIAS :
+ {
+ if(Value) {
+ tmpvalue.d = Value;
+ glEnable(GL_POLYGON_OFFSET_FILL);
+ checkGLcall("glEnable(GL_POLYGON_OFFSET_FILL)");
+ glPolygonOffset(tmpvalue.f, *((float*)&This->stateBlock->renderState[WINED3DRS_DEPTHBIAS]));
+ checkGLcall("glPolygonOffset(...)");
+ } else {
+ glDisable(GL_POLYGON_OFFSET_FILL);
+ checkGLcall("glDisable(GL_POLYGON_OFFSET_FILL)");
+ }
+ break;
+ }
case WINED3DRS_ANTIALIASEDLINEENABLE :
{
if(Value) {
@@ -3698,7 +3712,6 @@ HRESULT WINAPI IWineD3DDeviceImpl_SetRen
case WINED3DRS_NORMALORDER :
/* Direct3D9 render states */
case WINED3DRS_SCISSORTESTENABLE :
- case WINED3DRS_SLOPESCALEDEPTHBIAS :
case WINED3DRS_MINTESSELLATIONLEVEL :
case WINED3DRS_MAXTESSELLATIONLEVEL :
case WINED3DRS_ADAPTIVETESS_X :
More information about the wine-cvs
mailing list