mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Added some blend states.
This commit is contained in:
parent
eb620386dd
commit
f0541aa544
@ -221,6 +221,17 @@ void set_render_state(D3DRENDERSTATETYPE dwRenderStateType,
|
||||
case D3DBLEND_INVDESTCOLOR:
|
||||
rs->src = GL_ONE_MINUS_DST_COLOR;
|
||||
break;
|
||||
case D3DBLEND_BOTHSRCALPHA:
|
||||
rs->src = GL_SRC_ALPHA;
|
||||
rs->dst = GL_SRC_ALPHA;
|
||||
break;
|
||||
case D3DBLEND_BOTHINVSRCALPHA:
|
||||
rs->src = GL_ONE_MINUS_SRC_ALPHA;
|
||||
rs->dst = GL_ONE_MINUS_SRC_ALPHA;
|
||||
break;
|
||||
case D3DBLEND_SRCALPHASAT:
|
||||
rs->src = GL_SRC_ALPHA_SATURATE;
|
||||
break;
|
||||
case D3DBLEND_SRCCOLOR:
|
||||
case D3DBLEND_INVSRCCOLOR:
|
||||
/* Cannot be supported with OpenGL */
|
||||
|
Loading…
Reference in New Issue
Block a user