From c9a4d9c4b8e754cf215ddc2b8e095db35941e755 Mon Sep 17 00:00:00 2001 From: rogerman Date: Wed, 25 Jan 2023 19:09:21 -0800 Subject: [PATCH] SoftRasterizer: Fix compiling issue for non-SSE2 systems. (Regression from commit 5426509e.) --- desmume/src/rasterize.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/desmume/src/rasterize.cpp b/desmume/src/rasterize.cpp index 56f3af2d0..3681bad00 100644 --- a/desmume/src/rasterize.cpp +++ b/desmume/src/rasterize.cpp @@ -619,7 +619,7 @@ FORCEINLINE void RasterizerUnit::_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::_pixel_SSE2(const POLYGON_ATTR polyAt this->_shade((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; }