mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-30 01:25:51 +00:00
GPU: Fix internal resolution options not displaying
This commit is contained in:
parent
62f6a5597e
commit
88eec0a56b
|
@ -136,12 +136,10 @@ void GPU_HW_OpenGL::SetMaxResolutionScale()
|
||||||
glGetIntegerv(GL_ALIASED_LINE_WIDTH_RANGE, line_width_range.data());
|
glGetIntegerv(GL_ALIASED_LINE_WIDTH_RANGE, line_width_range.data());
|
||||||
Log_InfoPrintf("Max line width: %d", line_width_range[1]);
|
Log_InfoPrintf("Max line width: %d", line_width_range[1]);
|
||||||
|
|
||||||
const u32 max_resolution_scale = std::min(max_texture_scale, line_width_range[1]);
|
m_max_resolution_scale = std::min(max_texture_scale, line_width_range[1]);
|
||||||
Log_InfoPrintf("Maximum resolution scale is %u", max_resolution_scale);
|
Log_InfoPrintf("Maximum resolution scale is %u", m_max_resolution_scale);
|
||||||
m_system->GetSettings().max_gpu_resolution_scale = max_resolution_scale;
|
|
||||||
m_system->GetSettings().gpu_resolution_scale =
|
m_resolution_scale = std::min(m_resolution_scale, m_max_resolution_scale);
|
||||||
std::min(m_system->GetSettings().gpu_resolution_scale, max_resolution_scale);
|
|
||||||
m_resolution_scale = m_system->GetSettings().gpu_resolution_scale;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GPU_HW_OpenGL::CreateFramebuffer()
|
void GPU_HW_OpenGL::CreateFramebuffer()
|
||||||
|
|
Loading…
Reference in a new issue