We don't need to recompile shaders if alpha test state changed but alpha test is disabled

This commit is contained in:
gdk 2022-04-10 21:51:21 -03:00 committed by riperiperi
parent 5670022e27
commit 2121f69b1c

View file

@ -460,9 +460,14 @@ namespace Ryujinx.Graphics.Gpu.Shader
return false; return false;
} }
if (graphicsState.AlphaTestEnable != GraphicsState.AlphaTestEnable || if (graphicsState.AlphaTestEnable != GraphicsState.AlphaTestEnable)
graphicsState.AlphaTestCompare != GraphicsState.AlphaTestCompare || {
graphicsState.AlphaTestReference != GraphicsState.AlphaTestReference) return false;
}
if (graphicsState.AlphaTestEnable &&
(graphicsState.AlphaTestCompare != GraphicsState.AlphaTestCompare ||
graphicsState.AlphaTestReference != GraphicsState.AlphaTestReference))
{ {
return false; return false;
} }