Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

HWRasterizer: Implemented stencil ops 6 and 7.

Subvc0ddc0df52ef
diff --git a/src/video_core/renderer_opengl/pica_to_gl.h b/src/video_core/renderer_opengl/pica_to_gl.h
index af5e66e886..12806fad5e 100644
--- a/src/video_core/renderer_opengl/pica_to_gl.h
+++ b/src/video_core/renderer_opengl/pica_to_gl.h
@@ -159,7 +159,9 @@ inline GLenum StencilOp(Pica::Regs::StencilAction action) {
GL_REPLACE, // StencilAction::Replace
GL_INCR, // StencilAction::Increment
GL_DECR, // StencilAction::Decrement
- GL_INVERT // StencilAction::Invert
+ GL_INVERT, // StencilAction::Invert
+ GL_INCR_WRAP, // StencilAction::IncrementWrap
+ GL_DECR_WRAP // StencilAction::DecrementWrap
};
// Range check table for input