Jan Zerebecki : wined3d: Enable two sided stencil in the caps.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 13 05:58:35 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: cf8833c46789d4ff4d10eb1e204b93f328964c69
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=cf8833c46789d4ff4d10eb1e204b93f328964c69
Author: Jan Zerebecki <jan.wine at zerebecki.de>
Date: Fri Jun 9 17:30:20 2006 +0200
wined3d: Enable two sided stencil in the caps.
---
dlls/wined3d/directx.c | 5 +++++
include/d3d9caps.h | 1 +
include/d3dcaps.h | 1 +
3 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index eae3a13..f7f461c 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1635,6 +1635,11 @@ static HRESULT WINAPI IWineD3DImpl_GetDe
*pCaps->StencilCaps |= D3DSTENCILCAPS_DECR |
D3DSTENCILCAPS_INCR;
}
+ if ( This->dxVersion > 8 &&
+ ( GL_SUPPORT(EXT_STENCIL_TWO_SIDE) ||
+ GL_SUPPORT(ATI_SEPARATE_STENCIL) ) ) {
+ *pCaps->StencilCaps |= D3DSTENCILCAPS_TWOSIDED;
+ }
*pCaps->FVFCaps = D3DFVFCAPS_PSIZE | 0x0008; /* 8 texture coords */
diff --git a/include/d3d9caps.h b/include/d3d9caps.h
index ba05e79..573d459 100644
--- a/include/d3d9caps.h
+++ b/include/d3d9caps.h
@@ -187,6 +187,7 @@ #define D3DSTENCILCAPS_DECRSAT
#define D3DSTENCILCAPS_INVERT 0x20
#define D3DSTENCILCAPS_INCR 0x40
#define D3DSTENCILCAPS_DECR 0x80
+#define D3DSTENCILCAPS_TWOSIDED 0x100
#define D3DTEXOPCAPS_DISABLE 0x0000001
#define D3DTEXOPCAPS_SELECTARG1 0x0000002
diff --git a/include/d3dcaps.h b/include/d3dcaps.h
index b44c49d..f96ca5d 100644
--- a/include/d3dcaps.h
+++ b/include/d3dcaps.h
@@ -311,6 +311,7 @@ #define D3DSTENCILCAPS_DECRSAT 0x000000
#define D3DSTENCILCAPS_INVERT 0x00000020
#define D3DSTENCILCAPS_INCR 0x00000040
#define D3DSTENCILCAPS_DECR 0x00000080
+#define D3DSTENCILCAPS_TWOSIDED 0x00000100
#define D3DTEXOPCAPS_DISABLE 0x00000001
#define D3DTEXOPCAPS_SELECTARG1 0x00000002
More information about the wine-cvs
mailing list