From ab48621758364b6ed245400821ef4368d3f78433 Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Tue, 5 Dec 2023 12:18:39 +0100 Subject: [PATCH] plugins/magnifier: use floating point offscreen texture With color management, everything would get clamped to 1 nit otherwise. BUG: 477841 --- src/plugins/magnifier/magnifier.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/magnifier/magnifier.cpp b/src/plugins/magnifier/magnifier.cpp index 205e520466..ac4c5eb0a5 100644 --- a/src/plugins/magnifier/magnifier.cpp +++ b/src/plugins/magnifier/magnifier.cpp @@ -206,7 +206,7 @@ void MagnifierEffect::zoomIn() } if (effects->isOpenGLCompositing() && !m_texture) { effects->makeOpenGLContextCurrent(); - m_texture = GLTexture::allocate(GL_RGBA8, m_magnifierSize); + m_texture = GLTexture::allocate(GL_RGBA16F, m_magnifierSize); if (!m_texture) { return; } @@ -246,7 +246,7 @@ void MagnifierEffect::toggle() } if (effects->isOpenGLCompositing() && !m_texture) { effects->makeOpenGLContextCurrent(); - m_texture = GLTexture::allocate(GL_RGBA8, m_magnifierSize); + m_texture = GLTexture::allocate(GL_RGBA16F, m_magnifierSize); if (!m_texture) { return; }