From 88eec0a56bfec7927b6a24ea0b707324bfcb37a3 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 26 Oct 2019 22:36:01 +1000 Subject: [PATCH] GPU: Fix internal resolution options not displaying --- src/core/gpu_hw_opengl.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/core/gpu_hw_opengl.cpp b/src/core/gpu_hw_opengl.cpp index d5c92b161..b9085bf97 100644 --- a/src/core/gpu_hw_opengl.cpp +++ b/src/core/gpu_hw_opengl.cpp @@ -136,12 +136,10 @@ void GPU_HW_OpenGL::SetMaxResolutionScale() glGetIntegerv(GL_ALIASED_LINE_WIDTH_RANGE, line_width_range.data()); Log_InfoPrintf("Max line width: %d", line_width_range[1]); - const u32 max_resolution_scale = std::min(max_texture_scale, line_width_range[1]); - Log_InfoPrintf("Maximum resolution scale is %u", max_resolution_scale); - m_system->GetSettings().max_gpu_resolution_scale = max_resolution_scale; - m_system->GetSettings().gpu_resolution_scale = - std::min(m_system->GetSettings().gpu_resolution_scale, max_resolution_scale); - m_resolution_scale = m_system->GetSettings().gpu_resolution_scale; + m_max_resolution_scale = std::min(max_texture_scale, line_width_range[1]); + Log_InfoPrintf("Maximum resolution scale is %u", m_max_resolution_scale); + + m_resolution_scale = std::min(m_resolution_scale, m_max_resolution_scale); } void GPU_HW_OpenGL::CreateFramebuffer()