summaryrefslogtreecommitdiff
path: root/src/video_core
diff options
context:
space:
mode:
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);