mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d9] Only advertise SRCCOLOR2 & INVSRCCOLOR2 with 9Ex
This commit is contained in:
parent
d7bd3cd58e
commit
15e6277491
2 changed files with 9 additions and 9 deletions
|
@ -49,13 +49,9 @@ namespace dxvk {
|
|||
& ~D3DPRASTERCAPS_DEPTHBIAS
|
||||
& ~D3DPRASTERCAPS_MULTISAMPLE_TOGGLE;
|
||||
|
||||
pCaps8->SrcBlendCaps &= ~D3DPBLENDCAPS_BLENDFACTOR
|
||||
& ~D3DPBLENDCAPS_INVSRCCOLOR2
|
||||
& ~D3DPBLENDCAPS_SRCCOLOR2;
|
||||
pCaps8->SrcBlendCaps &= ~D3DPBLENDCAPS_BLENDFACTOR;
|
||||
|
||||
pCaps8->DestBlendCaps &= ~D3DPBLENDCAPS_BLENDFACTOR
|
||||
& ~D3DPBLENDCAPS_INVSRCCOLOR2
|
||||
& ~D3DPBLENDCAPS_SRCCOLOR2;
|
||||
pCaps8->DestBlendCaps &= ~D3DPBLENDCAPS_BLENDFACTOR;
|
||||
|
||||
pCaps8->LineCaps &= ~D3DLINECAPS_ANTIALIAS;
|
||||
|
||||
|
|
|
@ -412,9 +412,13 @@ namespace dxvk {
|
|||
| D3DPBLENDCAPS_SRCALPHASAT
|
||||
| D3DPBLENDCAPS_BOTHSRCALPHA
|
||||
| D3DPBLENDCAPS_BOTHINVSRCALPHA
|
||||
| D3DPBLENDCAPS_BLENDFACTOR
|
||||
| D3DPBLENDCAPS_INVSRCCOLOR2
|
||||
| D3DPBLENDCAPS_SRCCOLOR2;
|
||||
| D3DPBLENDCAPS_BLENDFACTOR;
|
||||
|
||||
// Only 9Ex devices advertise D3DPBLENDCAPS_SRCCOLOR2 and D3DPBLENDCAPS_INVSRCCOLOR2
|
||||
if (m_parent->IsExtended())
|
||||
pCaps->SrcBlendCaps |= D3DPBLENDCAPS_SRCCOLOR2
|
||||
| D3DPBLENDCAPS_INVSRCCOLOR2;
|
||||
|
||||
// Destination Blend Caps
|
||||
pCaps->DestBlendCaps = pCaps->SrcBlendCaps;
|
||||
// Alpha Comparison Caps
|
||||
|
|
Loading…
Add table
Reference in a new issue