wined3d: Add WINED3DPTADDRESSCAPS flags and use them.

This commit is contained in:
H. Verbeet 2007-02-14 23:31:18 +01:00 committed by Alexandre Julliard
parent a58b156264
commit 5c398c571f
2 changed files with 19 additions and 12 deletions

View File

@ -2063,32 +2063,32 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
} else } else
*pCaps->VolumeTextureFilterCaps = 0; *pCaps->VolumeTextureFilterCaps = 0;
*pCaps->TextureAddressCaps = D3DPTADDRESSCAPS_INDEPENDENTUV | *pCaps->TextureAddressCaps = WINED3DPTADDRESSCAPS_INDEPENDENTUV |
D3DPTADDRESSCAPS_CLAMP | WINED3DPTADDRESSCAPS_CLAMP |
D3DPTADDRESSCAPS_WRAP; WINED3DPTADDRESSCAPS_WRAP;
if (GL_SUPPORT(ARB_TEXTURE_BORDER_CLAMP)) { if (GL_SUPPORT(ARB_TEXTURE_BORDER_CLAMP)) {
*pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_BORDER; *pCaps->TextureAddressCaps |= WINED3DPTADDRESSCAPS_BORDER;
} }
if (GL_SUPPORT(ARB_TEXTURE_MIRRORED_REPEAT)) { if (GL_SUPPORT(ARB_TEXTURE_MIRRORED_REPEAT)) {
*pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_MIRROR; *pCaps->TextureAddressCaps |= WINED3DPTADDRESSCAPS_MIRROR;
} }
if (GL_SUPPORT(ATI_TEXTURE_MIRROR_ONCE)) { if (GL_SUPPORT(ATI_TEXTURE_MIRROR_ONCE)) {
*pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE; *pCaps->TextureAddressCaps |= WINED3DPTADDRESSCAPS_MIRRORONCE;
} }
if (GL_SUPPORT(EXT_TEXTURE3D)) { if (GL_SUPPORT(EXT_TEXTURE3D)) {
*pCaps->VolumeTextureAddressCaps = D3DPTADDRESSCAPS_INDEPENDENTUV | *pCaps->VolumeTextureAddressCaps = WINED3DPTADDRESSCAPS_INDEPENDENTUV |
D3DPTADDRESSCAPS_CLAMP | WINED3DPTADDRESSCAPS_CLAMP |
D3DPTADDRESSCAPS_WRAP; WINED3DPTADDRESSCAPS_WRAP;
if (GL_SUPPORT(ARB_TEXTURE_BORDER_CLAMP)) { if (GL_SUPPORT(ARB_TEXTURE_BORDER_CLAMP)) {
*pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_BORDER; *pCaps->VolumeTextureAddressCaps |= WINED3DPTADDRESSCAPS_BORDER;
} }
if (GL_SUPPORT(ARB_TEXTURE_MIRRORED_REPEAT)) { if (GL_SUPPORT(ARB_TEXTURE_MIRRORED_REPEAT)) {
*pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRROR; *pCaps->VolumeTextureAddressCaps |= WINED3DPTADDRESSCAPS_MIRROR;
} }
if (GL_SUPPORT(ATI_TEXTURE_MIRROR_ONCE)) { if (GL_SUPPORT(ATI_TEXTURE_MIRROR_ONCE)) {
*pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE; *pCaps->VolumeTextureAddressCaps |= WINED3DPTADDRESSCAPS_MIRRORONCE;
} }
} else } else
*pCaps->VolumeTextureAddressCaps = 0; *pCaps->VolumeTextureAddressCaps = 0;

View File

@ -62,6 +62,13 @@
#define WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000 #define WINED3DPMISCCAPS_MRTPOSTPIXELSHADERBLENDING 0x00080000
#define WINED3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000 #define WINED3DPMISCCAPS_FOGVERTEXCLAMPED 0x00100000
#define WINED3DPTADDRESSCAPS_WRAP 0x00000001
#define WINED3DPTADDRESSCAPS_MIRROR 0x00000002
#define WINED3DPTADDRESSCAPS_CLAMP 0x00000004
#define WINED3DPTADDRESSCAPS_BORDER 0x00000008
#define WINED3DPTADDRESSCAPS_INDEPENDENTUV 0x00000010
#define WINED3DPTADDRESSCAPS_MIRRORONCE 0x00000020
#define WINED3DSTENCILCAPS_KEEP 0x00000001 #define WINED3DSTENCILCAPS_KEEP 0x00000001
#define WINED3DSTENCILCAPS_ZERO 0x00000002 #define WINED3DSTENCILCAPS_ZERO 0x00000002
#define WINED3DSTENCILCAPS_REPLACE 0x00000004 #define WINED3DSTENCILCAPS_REPLACE 0x00000004