rhi widget compositor: Use Nearest filtering
To stay compatible what the OpenGL-based code did before Qt 6.4. Pick-to: 6.6 6.5 Fixes: QTBUG-113811 Change-Id: I80d89b21dcace9b5c361b964d56f29e996940c24 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
6ec01168d1
commit
ec27b99c2a
@ -427,7 +427,7 @@ void QBackingStoreDefaultCompositor::ensureResources(QRhiSwapChain *swapchain, Q
|
||||
}
|
||||
|
||||
if (!m_sampler) {
|
||||
m_sampler = m_rhi->newSampler(QRhiSampler::Linear, QRhiSampler::Linear, QRhiSampler::None,
|
||||
m_sampler = m_rhi->newSampler(QRhiSampler::Nearest, QRhiSampler::Nearest, QRhiSampler::None,
|
||||
QRhiSampler::ClampToEdge, QRhiSampler::ClampToEdge);
|
||||
if (!m_sampler->create())
|
||||
qWarning("QBackingStoreDefaultCompositor: Failed to create sampler");
|
||||
|
Loading…
x
Reference in New Issue
Block a user