summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
authorGravatar lat9nq2023-06-20 23:29:07 -0400
committerGravatar lat9nq2023-07-21 10:56:55 -0400
commit8366736b67d6febe278b6599badf4e945599bc30 (patch)
treeae24dd924e96dcb771506b26a124111c7ae4b1c5 /src/video_core
parentsettings_enums: More aggressively use macros (diff)
downloadyuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.gz
yuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.xz
yuzu-8366736b67d6febe278b6599badf4e945599bc30.zip
settings,opengl,yuzu-qt: Fix AA, Filter maximums
The new enum macros don't support setting values directly. For LastAA and LastFilter, this means we need a simpler approach to loop around the toggle in the frontend...
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index 2a74c1d05..6b8d4e554 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -473,7 +473,7 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
473 glBindTextureUnit(0, screen_info.display_texture); 473 glBindTextureUnit(0, screen_info.display_texture);
474 474
475 auto anti_aliasing = Settings::values.anti_aliasing.GetValue(); 475 auto anti_aliasing = Settings::values.anti_aliasing.GetValue();
476 if (anti_aliasing > Settings::AntiAliasing::LastAA) { 476 if (anti_aliasing >= Settings::AntiAliasing::MaxEnum) {
477 LOG_ERROR(Render_OpenGL, "Invalid antialiasing option selected {}", anti_aliasing); 477 LOG_ERROR(Render_OpenGL, "Invalid antialiasing option selected {}", anti_aliasing);
478 anti_aliasing = Settings::AntiAliasing::None; 478 anti_aliasing = Settings::AntiAliasing::None;
479 Settings::values.anti_aliasing.SetValue(anti_aliasing); 479 Settings::values.anti_aliasing.SetValue(anti_aliasing);