plugins/magnifier: use floating point offscreen texture

With color management, everything would get clamped to 1 nit otherwise.

BUG: 477841
wilder/Plasma/6.2
Xaver Hugl 2 years ago
parent 3dc8b937ba
commit ab48621758
  1. 4
      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;
}

Loading…
Cancel
Save