From deda00422710c921cc09ea9bf4944b4f89073280 Mon Sep 17 00:00:00 2001 From: Briar <205427297+icy-briar@users.noreply.github.com> Date: Wed, 9 Apr 2025 23:14:50 +0200 Subject: [PATCH] renderer_opengl.cpp: Remove `isPortrait` check for second screen opacity --- src/video_core/renderer_opengl/renderer_opengl.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp index 61aa18928..514de372c 100644 --- a/src/video_core/renderer_opengl/renderer_opengl.cpp +++ b/src/video_core/renderer_opengl/renderer_opengl.cpp @@ -710,10 +710,7 @@ void RendererOpenGL::DrawScreens(const Layout::FramebufferLayout& layout, bool f } void RendererOpenGL::ApplySecondLayerOpacity(bool isPortrait) { - // TODO: Allow for second layer opacity in portrait mode android - - if (!isPortrait && - (Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout) && + if (Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout && Settings::values.custom_second_layer_opacity.GetValue() < 100) { state.blend.src_rgb_func = GL_CONSTANT_ALPHA; state.blend.src_a_func = GL_CONSTANT_ALPHA; @@ -724,8 +721,7 @@ void RendererOpenGL::ApplySecondLayerOpacity(bool isPortrait) { } void RendererOpenGL::ResetSecondLayerOpacity(bool isPortrait) { - if (!isPortrait && - (Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout) && + if (Settings::values.layout_option.GetValue() == Settings::LayoutOption::CustomLayout && Settings::values.custom_second_layer_opacity.GetValue() < 100) { state.blend.src_rgb_func = GL_ONE; state.blend.dst_rgb_func = GL_ZERO;