Commit 7afb3998 authored by James Perry's avatar James Perry Committed by Alexandre Julliard

Fix handling of D3DBLEND_BOTH* blend modes.

parent 27a20044
......@@ -553,11 +553,11 @@ void store_render_state(IDirect3DDeviceImpl *This,
if (dwRenderStateType == D3DRENDERSTATE_SRCBLEND) {
if (dwRenderState == D3DBLEND_BOTHSRCALPHA) {
lpStateBlock->render_state[D3DRENDERSTATE_SRCBLEND - 1] = D3DBLEND_SRCALPHA;
lpStateBlock->render_state[D3DRENDERSTATE_DESTBLEND - 1] = D3DBLEND_SRCALPHA;
lpStateBlock->render_state[D3DRENDERSTATE_DESTBLEND - 1] = D3DBLEND_INVSRCALPHA;
return;
} else if (dwRenderState == D3DBLEND_BOTHINVSRCALPHA) {
lpStateBlock->render_state[D3DRENDERSTATE_SRCBLEND - 1] = D3DBLEND_INVSRCALPHA;
lpStateBlock->render_state[D3DRENDERSTATE_DESTBLEND - 1] = D3DBLEND_INVSRCALPHA;
lpStateBlock->render_state[D3DRENDERSTATE_DESTBLEND - 1] = D3DBLEND_SRCALPHA;
return;
}
} else if (dwRenderStateType == D3DRENDERSTATE_TEXTUREADDRESS) {
......
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