plugins/magnifier: use floating point offscreen texture
With color management, everything would get clamped to 1 nit otherwise. BUG: 477841
This commit is contained in:
parent
3dc8b937ba
commit
ab48621758
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue