Commit cf8833c4 authored by Jan Zerebecki's avatar Jan Zerebecki Committed by Alexandre Julliard

wined3d: Enable two sided stencil in the caps.

parent df3e078b
......@@ -1635,6 +1635,11 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
*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 */
......
......@@ -187,6 +187,7 @@
#define D3DSTENCILCAPS_INVERT 0x20
#define D3DSTENCILCAPS_INCR 0x40
#define D3DSTENCILCAPS_DECR 0x80
#define D3DSTENCILCAPS_TWOSIDED 0x100
#define D3DTEXOPCAPS_DISABLE 0x0000001
#define D3DTEXOPCAPS_SELECTARG1 0x0000002
......
......@@ -311,6 +311,7 @@ typedef struct _D3DDeviceDesc7 {
#define D3DSTENCILCAPS_INVERT 0x00000020
#define D3DSTENCILCAPS_INCR 0x00000040
#define D3DSTENCILCAPS_DECR 0x00000080
#define D3DSTENCILCAPS_TWOSIDED 0x00000100
#define D3DTEXOPCAPS_DISABLE 0x00000001
#define D3DTEXOPCAPS_SELECTARG1 0x00000002
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment