Roderick Colenbrander : wined3d: Volume texture addressing caps.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Aug 8 13:21:32 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: c856432fab7399ad2d243dab868b8f0b68c89cce
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=c856432fab7399ad2d243dab868b8f0b68c89cce
Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date: Tue Aug 8 17:50:33 2006 +0200
wined3d: Volume texture addressing caps.
---
dlls/wined3d/directx.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 9bc7e71..7720723 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1917,7 +1917,21 @@ #endif
*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;
More information about the wine-cvs
mailing list