Commit 8bb7b949 authored by Guillaume Charifi's avatar Guillaume Charifi Committed by Alexandre Julliard

wined3d: Add dual-source blend factors.

parent 27759315
......@@ -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_SRC1COLOR:
return GL_SRC1_COLOR;
case WINED3D_BLEND_INVSRC1COLOR:
return GL_ONE_MINUS_SRC1_COLOR;
case WINED3D_BLEND_SRC1ALPHA:
return GL_SRC1_ALPHA;
case WINED3D_BLEND_INVSRC1ALPHA:
return GL_ONE_MINUS_SRC1_ALPHA;
default:
FIXME("Unhandled blend factor %#x.\n", factor);
return GL_NONE;
......
......@@ -400,6 +400,10 @@ enum wined3d_blend
WINED3D_BLEND_BOTHINVSRCALPHA = 13,
WINED3D_BLEND_BLENDFACTOR = 14,
WINED3D_BLEND_INVBLENDFACTOR = 15,
WINED3D_BLEND_SRC1COLOR = 16,
WINED3D_BLEND_INVSRC1COLOR = 17,
WINED3D_BLEND_SRC1ALPHA = 18,
WINED3D_BLEND_INVSRC1ALPHA = 19,
};
enum wined3d_blend_op
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment