Allow GL_ONE on WINED3DRS_EDGEANTIALIAS dstBlend value (try 2)

Kovács András andras at csevego.net
Tue Jun 12 17:23:20 CDT 2007


Hi,

Allow GL_ONE on WINED3DRS_EDGEANTIALIAS' dstBlend value. This fixes Pirates Of 
Caribbean At The Worlds End blending problem. ( black square behind linght 
sources)

-- 
----------------------------
Kovács András (andras)
NetClub Vezető Rendszergazda
Lamarr
csevego.net
andras at csevego.net
----------------------------
-------------- next part --------------
From 89fe06b57470d2e48be2ee5bf11d087bcac39b28 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Wed, 13 Jun 2007 00:21:58 +0200
Subject: [PATCH] Allow GL_ONE on WINED3DRS_EDGEANTIALIAS dstBlend value

---
 dlls/wined3d/state.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 54c62e4..b9753a1 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -309,9 +309,8 @@ static void state_blend(DWORD state, IWineD3DStateBlockImpl *stateblock, WineD3D
             FIXME("WINED3DRS_EDGEANTIALIAS enabled, but incompatible src blending param - what to do?\n");
             srcBlend = GL_SRC_ALPHA;
         }
-        if(dstBlend != GL_ONE_MINUS_SRC_ALPHA) {
+        if(dstBlend != GL_ONE_MINUS_SRC_ALPHA && dstBlend != GL_ONE) {
             FIXME("WINED3DRS_EDGEANTIALIAS enabled, but incompatible dst blending param - what to do?\n");
-            dstBlend = GL_ONE_MINUS_SRC_ALPHA;
         }
     } else {
         glDisable(GL_LINE_SMOOTH);
-- 
1.4.4.4



More information about the wine-patches mailing list