[PATCH] Add a function which checks the vertex texture capabilities of a format.
Roderick Colenbrander
thunderbird2k at gmx.net
Mon Mar 3 16:24:59 CST 2008
---
dlls/wined3d/directx.c | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 7a880a1..ec5a895 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2194,6 +2194,29 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DFORMAT CheckFormat)
return FALSE;
}
+static BOOL CheckVertexTextureCapability(UINT Adapter, WINED3DFORMAT CheckFormat)
+{
+ if (!GL_LIMITS(vertex_samplers)) {
+ TRACE_(d3d_caps)("[FAILED]\n");
+ return FALSE;
+ }
+
+ switch (CheckFormat) {
+ case WINED3DFMT_A32B32G32R32F:
+ if (!GL_SUPPORT(ARB_TEXTURE_FLOAT)) {
+ TRACE_(d3d_caps)("[FAILED]\n");
+ return FALSE;
+ }
+ TRACE_(d3d_caps)("[OK]\n");
+ return TRUE;
+
+ default:
+ TRACE_(d3d_caps)("[FAILED]\n");
+ return FALSE;
+ }
+ return FALSE;
+}
+
static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapter, WINED3DDEVTYPE DeviceType,
WINED3DFORMAT AdapterFormat, DWORD Usage, WINED3DRESOURCETYPE RType, WINED3DFORMAT CheckFormat) {
IWineD3DImpl *This = (IWineD3DImpl *)iface;
--
1.5.3.4
--========GMX18361204622839914534--
More information about the wine-patches
mailing list