mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-21 16:43:35 +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;
|
||||
}
|
||||
|
||||
if (graphicsState.AlphaTestEnable != GraphicsState.AlphaTestEnable ||
|
||||
graphicsState.AlphaTestCompare != GraphicsState.AlphaTestCompare ||
|
||||
graphicsState.AlphaTestReference != GraphicsState.AlphaTestReference)
|
||||
if (graphicsState.AlphaTestEnable != GraphicsState.AlphaTestEnable)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (graphicsState.AlphaTestEnable &&
|
||||
(graphicsState.AlphaTestCompare != GraphicsState.AlphaTestCompare ||
|
||||
graphicsState.AlphaTestReference != GraphicsState.AlphaTestReference))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue