mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Fix #3385, bad alphatest flushing.
This commit is contained in:
parent
64d3569831
commit
f6d8767487
@ -116,7 +116,6 @@ static const CommandTableEntry commandTable[] = {
|
||||
{GE_CMD_SHADEMODE, FLAG_FLUSHBEFOREONCHANGE},
|
||||
{GE_CMD_TEXFUNC, FLAG_FLUSHBEFOREONCHANGE},
|
||||
{GE_CMD_COLORTEST, FLAG_FLUSHBEFOREONCHANGE},
|
||||
{GE_CMD_ALPHATEST, FLAG_FLUSHBEFOREONCHANGE},
|
||||
{GE_CMD_ALPHATESTENABLE, FLAG_FLUSHBEFOREONCHANGE},
|
||||
{GE_CMD_COLORTESTENABLE, FLAG_FLUSHBEFOREONCHANGE},
|
||||
{GE_CMD_COLORTESTMASK, FLAG_FLUSHBEFOREONCHANGE},
|
||||
@ -140,6 +139,7 @@ static const CommandTableEntry commandTable[] = {
|
||||
{GE_CMD_TEXWRAP, FLAG_FLUSHBEFOREONCHANGE},
|
||||
|
||||
// Uniform changes
|
||||
{GE_CMD_ALPHATEST, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE},
|
||||
{GE_CMD_COLORREF, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE},
|
||||
{GE_CMD_TEXENVCOLOR, FLAG_FLUSHBEFOREONCHANGE | FLAG_EXECUTE},
|
||||
|
||||
@ -1118,11 +1118,11 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
|
||||
shaderManager_->DirtyUniform(DIRTY_COLORMASK);
|
||||
break;
|
||||
|
||||
#ifndef USING_GLES2
|
||||
case GE_CMD_ALPHATEST:
|
||||
#ifndef USING_GLES2
|
||||
if (((data >> 16) & 0xFF) != 0xFF && (data & 7) > 1)
|
||||
WARN_LOG_REPORT_ONCE(alphatestmask, HLE, "Unsupported alphatest mask: %02x", (data >> 16) & 0xFF);
|
||||
break;
|
||||
// Intentional fallthrough.
|
||||
#endif
|
||||
|
||||
case GE_CMD_COLORREF:
|
||||
|
Loading…
Reference in New Issue
Block a user