mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-03 11:15:20 +02:00
Wait, we're not in clear mode there so no need to check.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user