mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-23 12:15:37 +01:00
opengl: Sanitize antialiasing config
This commit is contained in:
parent
7ef897a277
commit
4bda2b475f
@ -442,7 +442,13 @@ void RendererOpenGL::DrawScreen(const Layout::FramebufferLayout& layout) {
|
|||||||
|
|
||||||
glBindTextureUnit(0, screen_info.display_texture);
|
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) {
|
if (anti_aliasing != Settings::AntiAliasing::None) {
|
||||||
glEnablei(GL_SCISSOR_TEST, 0);
|
glEnablei(GL_SCISSOR_TEST, 0);
|
||||||
auto viewport_width = screen_info.texture.width;
|
auto viewport_width = screen_info.texture.width;
|
||||||
|
Loading…
Reference in New Issue
Block a user