diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-06 20:25:29 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2023-01-06 20:42:20 +0100 |
commit | 4bda2b475f71f47b925f4bac36eba4a9a225b5f8 (patch) | |
tree | 595912548c52bc434c46d20c0bcb9fb5c3084b4e /src/video_core/renderer_opengl/renderer_opengl.cpp | |
parent | Merge pull request #9566 from Wollnashorn/vulkan-cache-header-fix (diff) | |
download | yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.tar yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.tar.gz yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.tar.bz2 yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.tar.lz yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.tar.xz yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.tar.zst yuzu-4bda2b475f71f47b925f4bac36eba4a9a225b5f8.zip |
Diffstat (limited to 'src/video_core/renderer_opengl/renderer_opengl.cpp')
-rw-r--r-- | src/video_core/renderer_opengl/renderer_opengl.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index bc75680f0..de95f2634 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; |