Report D3D caps properly for ati cards

Maarten Lankhorst m.b.lankhorst at gmail.com
Sat Jan 27 05:12:44 CST 2007


This patch fixes some of the missing caps for ati cards.
-------------- next part --------------
>From c7a5ecc52c95fb7518599649cc59e758590d4f09 Mon Sep 17 00:00:00 2001
From: maarten <maarten at maarten-laptop.(none)>
Date: Sat, 27 Jan 2007 12:06:37 +0100
Subject: [PATCH] Report caps for ati too
Apparantly looking at utils.c in the same directory there is support for MULTIPLYADD etc, but the caps don't report them. Hopefully this fixes it the proper way.
---
 dlls/wined3d/directx.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 0e6f4bc..7bd04bb 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -2136,7 +2136,8 @@ #endif
                                 D3DTEXOPCAPS_LERP               |
                                 D3DTEXOPCAPS_SUBTRACT;
     }
-    if (GL_SUPPORT(NV_TEXTURE_ENV_COMBINE4)) {
+    if (GL_SUPPORT(ATI_TEXTURE_ENV_COMBINE3) ||
+         GL_SUPPORT(NV_TEXTURE_ENV_COMBINE4)) {
         *pCaps->TextureOpCaps |= D3DTEXOPCAPS_ADDSMOOTH             |
                                 D3DTEXOPCAPS_MULTIPLYADD            |
                                 D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR |
-- 
1.4.1



More information about the wine-patches mailing list