Added some blend states.

This commit is contained in:
Lionel Ulmer 2003-01-02 19:56:52 +00:00 committed by Alexandre Julliard
parent eb620386dd
commit f0541aa544
1 changed files with 11 additions and 0 deletions

View File

@ -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 */