[PATCH] Add a function which checks the filtering capabilities of a format.
Roderick Colenbrander
thunderbird2k at gmx.net
Mon Mar 3 16:10:26 CST 2008
---
dlls/wined3d/directx.c | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 1fe9ec2..e99e728 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1887,6 +1887,20 @@ static BOOL CheckDepthStencilCapability(UINT Adapter, WINED3DFORMAT DisplayForma
return FALSE;
}
+static BOOL CheckFilterCapability(WINED3DFORMAT CheckFormat)
+{
+ switch (CheckFormat) {
+ /* Filtering not supported */
+ case WINED3DFMT_R32F:
+ case WINED3DFMT_A32B32G32R32F:
+ TRACE_(d3d_caps)("[FAILED]\n");
+ return FALSE;
+ default:
+ break;
+ }
+
+ return TRUE;
+}
static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapter, WINED3DDEVTYPE DeviceType,
WINED3DFORMAT AdapterFormat, DWORD Usage, WINED3DRESOURCETYPE RType, WINED3DFORMAT CheckFormat) {
--
1.5.3.4
--========GMX18391204622609289536--
More information about the wine-patches
mailing list