Workaround for older versions of the DirectX SDK

This commit is contained in:
rdb 2016-04-17 20:45:24 +02:00
parent c896f7269b
commit 380ff44710
1 changed files with 6 additions and 7 deletions

View File

@ -4118,19 +4118,18 @@ get_blend_func(ColorBlendAttrib::Operand operand) {
return D3DBLEND_SRCALPHASAT;
case ColorBlendAttrib::O_incoming1_color:
return D3DBLEND_SRCCOLOR2;
return (D3DBLEND)16; //D3DBLEND_SRCCOLOR2;
case ColorBlendAttrib::O_one_minus_incoming1_color:
return D3DBLEND_INVSRCCOLOR2;
return (D3DBLEND)17; //D3DBLEND_INVSRCCOLOR2;
case ColorBlendAttrib::O_incoming1_alpha:
// Not supported by DX.
return D3DBLEND_SRCCOLOR2;
// Not supported by DX9.
return (D3DBLEND)18;
case ColorBlendAttrib::O_one_minus_incoming1_alpha:
// Not supported by DX.
return D3DBLEND_INVSRCCOLOR2;
// Not supported by DX9.
return (D3DBLEND)19;
}
dxgsg9_cat.error()