wined3d: Add dual-source blend factors.
Signed-off-by: Guillaume Charifi <guillaume.charifi@sfr.fr> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2775931536
commit
8bb7b94986
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue