plugins/screencast: Use bilinear min/mag filter

Use GL_LINEAR so region screencasts look nicer when the output content
is magnified or minified.
This commit is contained in:
Vlad Zahorodnii 2023-11-29 10:39:57 +02:00
parent 6f7e06bf9e
commit 19c6425607

View file

@ -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<GLFramebuffer>(m_renderedTexture.get());
const auto allOutputs = workspace()->outputs();
for (auto output : allOutputs) {