From c856432fab7399ad2d243dab868b8f0b68c89cce Mon Sep 17 00:00:00 2001 From: Roderick Colenbrander Date: Tue, 8 Aug 2006 17:50:33 +0200 Subject: [PATCH] wined3d: Volume texture addressing caps. --- dlls/wined3d/directx.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 9bc7e710354..772072395bd 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -1917,7 +1917,21 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter, *pCaps->TextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE; } - *pCaps->VolumeTextureAddressCaps = 0; + if (GL_SUPPORT(EXT_TEXTURE3D)) { + *pCaps->VolumeTextureAddressCaps = D3DPTADDRESSCAPS_INDEPENDENTUV | + D3DPTADDRESSCAPS_CLAMP | + D3DPTADDRESSCAPS_WRAP; + if (GL_SUPPORT(ARB_TEXTURE_BORDER_CLAMP)) { + *pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_BORDER; + } + if (GL_SUPPORT(ARB_TEXTURE_MIRRORED_REPEAT)) { + *pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRROR; + } + if (GL_SUPPORT(ATI_TEXTURE_MIRROR_ONCE)) { + *pCaps->VolumeTextureAddressCaps |= D3DPTADDRESSCAPS_MIRRORONCE; + } + } else + *pCaps->VolumeTextureAddressCaps = 0; *pCaps->LineCaps = D3DLINECAPS_TEXTURE | D3DLINECAPS_ZTEST;