VERY experimental Nintendo Switch 2 emulator
C++
opengl: Sanitize antialiasing config
Narr the Regc5a006cb24d3
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cppindex bc75680f0a..de95f26340 100644--- a/src/video_core/renderer_opengl/renderer_opengl.cpp+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp@@ -442,7 +442,13 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {glBindTextureUnit(0, screen_info.display_texture);- const auto anti_aliasing = Settings::values.anti_aliasing.GetValue();+ auto anti_aliasing = Settings::values.anti_aliasing.GetValue();+ if (anti_aliasing > Settings::AntiAliasing::LastAA) {+ LOG_ERROR(Render_OpenGL, "Invalid antialiasing option selected {}", anti_aliasing);+ anti_aliasing = Settings::AntiAliasing::None;+ Settings::values.anti_aliasing.SetValue(anti_aliasing);+ }+if (anti_aliasing != Settings::AntiAliasing::None) {glEnablei(GL_SCISSOR_TEST, 0);auto viewport_width = screen_info.texture.width;