[PATCH 3/3] wined3d: Add support for SRCCOLOR2, INVSRCCOLOR2, SRCALPHA2 and INVSRCALPHA2 blend modes.
Guillaume Charifi
guillaume.charifi at sfr.fr
Sat Jan 28 20:42:42 CST 2017
Signed-off-by: Guillaume Charifi <guillaume.charifi at sfr.fr>
---
dlls/wined3d/state.c | 8 ++++++++
include/wine/wined3d.h | 4 ++++
2 files changed, 12 insertions(+)
diff --git a/dlls/wined3d/state.c b/dlls/wined3d/state.c
index 96da4ad..b95004d 100644
--- a/dlls/wined3d/state.c
+++ b/dlls/wined3d/state.c
@@ -406,6 +406,14 @@ static GLenum gl_blend_factor(enum wined3d_blend factor, const struct wined3d_fo
return GL_CONSTANT_COLOR_EXT;
case WINED3D_BLEND_INVBLENDFACTOR:
return GL_ONE_MINUS_CONSTANT_COLOR_EXT;
+ case WINED3D_BLEND_SRCCOLOR2:
+ return GL_SRC1_COLOR;
+ case WINED3D_BLEND_INVSRCCOLOR2:
+ return GL_ONE_MINUS_SRC1_COLOR;
+ case WINED3D_BLEND_SRCALPHA2:
+ return GL_SRC1_ALPHA;
+ case WINED3D_BLEND_INVSRCALPHA2:
+ return GL_ONE_MINUS_SRC1_ALPHA;
default:
FIXME("Unhandled blend factor %#x.\n", factor);
return GL_NONE;
diff --git a/include/wine/wined3d.h b/include/wine/wined3d.h
index 4b0ea06..0b801eb 100644
--- a/include/wine/wined3d.h
+++ b/include/wine/wined3d.h
@@ -400,6 +400,10 @@ enum wined3d_blend
WINED3D_BLEND_BOTHINVSRCALPHA = 13,
WINED3D_BLEND_BLENDFACTOR = 14,
WINED3D_BLEND_INVBLENDFACTOR = 15,
+ WINED3D_BLEND_SRCCOLOR2 = 16,
+ WINED3D_BLEND_INVSRCCOLOR2 = 17,
+ WINED3D_BLEND_SRCALPHA2 = 18,
+ WINED3D_BLEND_INVSRCALPHA2 = 19,
};
enum wined3d_blend_op
--
2.9.3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20170129/c73a4b3b/attachment-0001.html>
More information about the wine-patches
mailing list