mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
Fix handling of D3DBLEND_BOTH* blend modes.
This commit is contained in:
parent
27a2004430
commit
7afb399802
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user