You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
Added patch to silence repeated 'Unhandled blend factor 0' FIXME messages.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
From fbbc2b263f3ec7769a2f3b5ab17ae2e841b95876 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Sun, 15 Mar 2015 01:33:05 +0100
|
||||
Subject: wined3d: Silence repeated 'Unhandled blend factor 0' messages.
|
||||
|
||||
---
|
||||
dlls/wined3d/state.c | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
|
||||
index 67570d5..1bc2973 100644
|
||||
--- a/dlls/wined3d/state.c
|
||||
+++ b/dlls/wined3d/state.c
|
||||
@@ -360,8 +360,11 @@ static GLenum gl_blend_factor(enum wined3d_blend factor, const struct wined3d_fo
|
||||
case WINED3D_BLEND_INVBLENDFACTOR:
|
||||
return GL_ONE_MINUS_CONSTANT_COLOR_EXT;
|
||||
default:
|
||||
- FIXME("Unhandled blend factor %#x.\n", factor);
|
||||
+ {
|
||||
+ static int once;
|
||||
+ if (factor || !once++) FIXME("Unhandled blend factor %#x.\n", factor);
|
||||
return GL_NONE;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
--
|
||||
2.3.2
|
||||
|
Reference in New Issue
Block a user