From 19c642560764757e0428209f1de22eae626bb74c Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 29 Nov 2023 10:39:57 +0200 Subject: [PATCH] plugins/screencast: Use bilinear min/mag filter Use GL_LINEAR so region screencasts look nicer when the output content is magnified or minified. --- src/plugins/screencast/regionscreencastsource.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/screencast/regionscreencastsource.cpp b/src/plugins/screencast/regionscreencastsource.cpp index 5e75225a55..de9f537459 100644 --- a/src/plugins/screencast/regionscreencastsource.cpp +++ b/src/plugins/screencast/regionscreencastsource.cpp @@ -82,6 +82,9 @@ void RegionScreenCastSource::ensureTexture() if (!m_renderedTexture) { return; } + m_renderedTexture->setFilter(GL_LINEAR); + m_renderedTexture->setWrapMode(GL_CLAMP_TO_EDGE); + m_target = std::make_unique(m_renderedTexture.get()); const auto allOutputs = workspace()->outputs(); for (auto output : allOutputs) {