Fix handling of D3DBLEND_BOTH* blend modes.

This commit is contained in:
James Perry 2004-03-27 01:36:26 +00:00 committed by Alexandre Julliard
parent 27a2004430
commit 7afb399802

View File

@ -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) {