wined3d: Add support for float texture formats back in
Fabian Bieler
der.fabe at gmx.net
Thu Mar 29 13:01:55 CDT 2007
-------------- next part --------------
From 35fc47a15046c90decff7d68a636926faa038532 Mon Sep 17 00:00:00 2001
From: Fabian Bieler <der.fabe at gmx.net>
Date: Thu, 29 Mar 2007 19:53:52 +0200
Subject: [PATCH] wined3d: Add support for float texture formats back in
---
dlls/wined3d/directx.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index e0dbe57..c44e6a6 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1700,6 +1700,23 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt
}
}
+ if (GL_SUPPORT(ARB_TEXTURE_FLOAT)) {
+
+ BOOL half_pixel_support = GL_SUPPORT(ARB_HALF_FLOAT_PIXEL);
+
+ switch (CheckFormat) {
+ case WINED3DFMT_R16F:
+ case WINED3DFMT_A16B16G16R16F:
+ if (!half_pixel_support) break;
+ case WINED3DFMT_R32F:
+ case WINED3DFMT_A32B32G32R32F:
+ TRACE_(d3d_caps)("[OK]\n");
+ return WINED3D_OK;
+ default:
+ break; /* Avoid compiler warnings */
+ }
+ }
+
/* This format is nothing special and it is supported perfectly.
* However, ati and nvidia driver on windows do not mark this format as
* supported (tested with the dxCapsViewer) and pretending to
--
1.4.4.1
More information about the wine-patches
mailing list