Allow GL_ONE on WINED3DRS_EDGEANTIALIAS dstBlend value
Kovács András
andras at csevego.net
Tue Jun 12 10:01:32 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 a0794f3f3115ad3f3092be1a4e9c1718f075fb1f Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Tue, 12 Jun 2007 16:58:06 +0200
Subject: [PATCH] Allow GL_ONE on WINED3DRS_EDGEANTIALIAS' dstBlend value.
---
dlls/wined3d/state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 54c62e4..6411edc 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -309,7 +309,7 @@ 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;
}
--
1.4.4.4
More information about the wine-patches
mailing list