summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-21 05:29:07 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commit8366736b67d6febe278b6599badf4e945599bc30 (patch)
treeae24dd924e96dcb771506b26a124111c7ae4b1c5 /src/video_core
parentsettings_enums: More aggressively use macros (diff)
downloadyuzu-8366736b67d6febe278b6599badf4e945599bc30.tar
yuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.gz
yuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.bz2
yuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.lz
yuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.xz
yuzu-8366736b67d6febe278b6599badf4e945599bc30.tar.zst
yuzu-8366736b67d6febe278b6599badf4e945599bc30.zip
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) {
glBindTextureUnit(0, screen_info.display_texture);
auto anti_aliasing = Settings::values.anti_aliasing.GetValue();
- if (anti_aliasing > Settings::AntiAliasing::LastAA) {
+ if (anti_aliasing >= Settings::AntiAliasing::MaxEnum) {
LOG_ERROR(Render_OpenGL, "Invalid antialiasing option selected {}", anti_aliasing);
anti_aliasing = Settings::AntiAliasing::None;
Settings::values.anti_aliasing.SetValue(anti_aliasing);