SoftRasterizer: Fix compiling issue for non-SSE2 systems. (Regression from commit 5426509e.)

This commit is contained in:
rogerman 2023-01-25 19:09:21 -08:00
parent 5426509ede
commit c9a4d9c4b8
1 changed files with 3 additions and 2 deletions

View File

@ -619,7 +619,7 @@ FORCEINLINE void RasterizerUnit<RENDERER>::_pixel(const POLYGON_ATTR polyAttr, c
// handle alpha test
if ( shaderOutput.a == 0 ||
(this->_softRender->currentRenderState->enableAlphaTest && shaderOutput.a < this->_softRender->currentRenderState->alphaTestRef) )
(renderState.DISP3DCNT.EnableAlphaTest && (shaderOutput.a < renderState.alphaTestRef)) )
{
return;
}
@ -895,7 +895,8 @@ FORCEINLINE void RasterizerUnit<RENDERER>::_pixel_SSE2(const POLYGON_ATTR polyAt
this->_shade<ISSHADOWPOLYGON>((PolygonMode)polyAttr.Mode, newDstColor32, shaderOutput, invu * w, invv * w);
// handle alpha test
if ( shaderOutput.a == 0 || (renderState.DISP3DCNT.EnableAlphaTest && (shaderOutput.a < renderState.alphaTestRef)) )
if ( shaderOutput.a == 0 ||
(renderState.DISP3DCNT.EnableAlphaTest && (shaderOutput.a < renderState.alphaTestRef)) )
{
return;
}