From d821f6395fdc99da6e652d48110477e4311bcbbf Mon Sep 17 00:00:00 2001 From: ts-korhonen Date: Mon, 7 Mar 2022 19:22:02 +0200 Subject: [PATCH] qt: opengl core; fix filter method defaulting to nearest when applying options --- src/qt/qt_opengloptions.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/qt/qt_opengloptions.cpp b/src/qt/qt_opengloptions.cpp index 0d5b9fc77..04ca16234 100644 --- a/src/qt/qt_opengloptions.cpp +++ b/src/qt/qt_opengloptions.cpp @@ -49,6 +49,10 @@ OpenGLOptions::OpenGLOptions(QObject *parent, bool loadConfig, const QString &gl : QObject(parent) , m_glslVersion(glslVersion) { + m_filter = video_filter_method == 0 + ? FilterType::Nearest + : FilterType::Linear; + if (!loadConfig) return; @@ -60,10 +64,6 @@ OpenGLOptions::OpenGLOptions(QObject *parent, bool loadConfig, const QString &gl ? RenderBehaviorType::SyncWithVideo : RenderBehaviorType::TargetFramerate; - m_filter = video_filter_method == 0 - ? FilterType::Nearest - : FilterType::Linear; - QString shaderPath(video_shader); if (shaderPath.isEmpty()) {