mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Wait, we're not in clear mode there so no need to check.
This commit is contained in:
parent
10b9e83353
commit
d1f054e033
1 changed files with 3 additions and 10 deletions
|
@ -340,16 +340,9 @@ void TransformDrawEngine::ApplyDrawState(int prim) {
|
|||
bool bmask = ((gstate.pmskc >> 16) & 0xFF) < 128;
|
||||
bool amask = (gstate.pmska & 0xFF) < 128;
|
||||
|
||||
if (gstate.isModeClear()) {
|
||||
// Clear mode? Obey the clear mode alpha mask (works opposite)
|
||||
if (gstate.isClearModeAlphaMask()) {
|
||||
amask = false;
|
||||
}
|
||||
} else {
|
||||
// Let's not write to alpha if stencil isn't enabled.
|
||||
if (!gstate.isStencilTestEnabled()) {
|
||||
amask = false;
|
||||
}
|
||||
// Let's not write to alpha if stencil isn't enabled.
|
||||
if (!gstate.isStencilTestEnabled()) {
|
||||
amask = false;
|
||||
}
|
||||
|
||||
glstate.colorMask.set(rmask, gmask, bmask, amask);
|
||||
|
|
Loading…
Add table
Reference in a new issue