H. Verbeet : wined3d:
Only report 16 bit float declaration types as supported if we support
them .
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Aug 2 06:23:06 CDT 2007
Module: wine
Branch: master
Commit: 3ac2271f5cb8722df501935e6a71e56ef8f6993d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=3ac2271f5cb8722df501935e6a71e56ef8f6993d
Author: H. Verbeet <hverbeet at gmail.com>
Date: Wed Aug 1 23:14:03 2007 +0200
wined3d: Only report 16 bit float declaration types as supported if we support them.
---
dlls/wined3d/directx.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index d4a905a..7da3ef2 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2301,10 +2301,12 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
*pCaps->DeclTypes = WINED3DDTCAPS_UBYTE4 |
WINED3DDTCAPS_UBYTE4N |
WINED3DDTCAPS_SHORT2N |
- WINED3DDTCAPS_SHORT4N |
+ WINED3DDTCAPS_SHORT4N;
+ if (GL_SUPPORT(NV_HALF_FLOAT)) {
+ *pCaps->DeclTypes |=
WINED3DDTCAPS_FLOAT16_2 |
WINED3DDTCAPS_FLOAT16_4;
-
+ }
} else
*pCaps->DeclTypes = 0;
More information about the wine-cvs
mailing list