mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 09:03:36 +00:00
We don't need to recompile shaders if alpha test state changed but alpha test is disabled
This commit is contained in:
parent
5670022e27
commit
2121f69b1c
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue