summaryrefslogtreecommitdiff
path: root/src/video_core/rasterizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/video_core/rasterizer.cpp')
-rw-r--r--src/video_core/rasterizer.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/video_core/rasterizer.cpp b/src/video_core/rasterizer.cpp
index c768a5eea..696839da6 100644
--- a/src/video_core/rasterizer.cpp
+++ b/src/video_core/rasterizer.cpp
@@ -888,21 +888,19 @@ static void ProcessTriangleInternal(const Shader::OutputVertex& v0,
888 } 888 }
889 889
890 if (!pass) { 890 if (!pass) {
891 if (stencil_action_enable) { 891 if (stencil_action_enable)
892 UpdateStencil(stencil_test.action_depth_fail); 892 UpdateStencil(stencil_test.action_depth_fail);
893 }
894 continue; 893 continue;
895 } 894 }
896 895
897 if (output_merger.depth_write_enable) 896 if (output_merger.depth_write_enable)
898 SetDepth(x >> 4, y >> 4, z); 897 SetDepth(x >> 4, y >> 4, z);
899
900 if (stencil_action_enable) {
901 // TODO: What happens if stencil testing is enabled, but depth testing is not? Will stencil get updated anyway?
902 UpdateStencil(stencil_test.action_depth_pass);
903 }
904 } 898 }
905 899
900 // The stencil depth_pass action is executed even if depth testing is disabled
901 if (stencil_action_enable)
902 UpdateStencil(stencil_test.action_depth_pass);
903
906 auto dest = GetPixel(x >> 4, y >> 4); 904 auto dest = GetPixel(x >> 4, y >> 4);
907 Math::Vec4<u8> blend_output = combiner_output; 905 Math::Vec4<u8> blend_output = combiner_output;
908 906