Commit 71e88085 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

Add support for D3DBLEND_ONE for D3DRENDERSTATE_{DEST/SRC}BLEND.

parent 27483686
......@@ -144,6 +144,9 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
case D3DRENDERSTATE_SRCBLEND: /* 19 */
switch ((D3DBLEND) dwRenderState) {
case D3DBLEND_ONE:
rs->src = GL_ONE;
break;
case D3DBLEND_SRCALPHA:
rs->src = GL_SRC_ALPHA;
break;
......@@ -155,6 +158,9 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
case D3DRENDERSTATE_DESTBLEND: /* 20 */
switch ((D3DBLEND) dwRenderState) {
case D3DBLEND_ONE:
rs->dst = GL_ONE;
break;
case D3DBLEND_INVSRCALPHA:
rs->dst = GL_ONE_MINUS_SRC_ALPHA;
break;
......
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