mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-02 01:24:11 +01:00
[d3d9] Fix state sometimes not being set in SetRenderState
Previously this prevented us disabling AlphaToCoverage once the application enabled it.
This commit is contained in:
parent
5c3d0c6836
commit
457c0c3021
@ -1673,6 +1673,8 @@ namespace dxvk {
|
||||
const bool oldNVDB = states[D3DRS_ADAPTIVETESS_X] == uint32_t(D3D9Format::NVDB);
|
||||
const bool oldAlphaTest = IsAlphaTestEnabled();
|
||||
|
||||
states[State] = Value;
|
||||
|
||||
// AMD's driver hack for ATOC and RESZ
|
||||
if (unlikely(State == D3DRS_POINTSIZE)) {
|
||||
// ATOC
|
||||
@ -1731,8 +1733,6 @@ namespace dxvk {
|
||||
}
|
||||
}
|
||||
|
||||
states[State] = Value;
|
||||
|
||||
switch (State) {
|
||||
case D3DRS_SEPARATEALPHABLENDENABLE:
|
||||
case D3DRS_ALPHABLENDENABLE:
|
||||
|
Loading…
Reference in New Issue
Block a user