summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2021-01-04 15:44:21 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2021-01-04 17:30:26 +0100
commit133af89038927d5f1a536619ff2869e8f372a4dd (patch)
tree3ea275197a7f3057cc6e612d6c6f9add2fbc0528 /tests/manual
parentd896f78999720d39bfb24c0256dd9f73cdda58e8 (diff)
rhi: shadowmap manual test: use Nearest filtering
Just to avoid validation warnings on systems where the sampling a D32 texture with linear filtering is not supported. This is likely not a problem elsewhere: Qt Quick 3D for example samples the depth texture only with Nearest filtering already. Fixes: QTBUG-89761 Pick-to: 6.0 Change-Id: I80bf5b7ecfcb3365f4010daa17f2ef00bb206b74 Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/rhi/shadowmap/shadowmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rhi/shadowmap/shadowmap.cpp b/tests/manual/rhi/shadowmap/shadowmap.cpp
index dc533fea29..39568ad9c4 100644
--- a/tests/manual/rhi/shadowmap/shadowmap.cpp
+++ b/tests/manual/rhi/shadowmap/shadowmap.cpp
@@ -112,7 +112,7 @@ void Window::customInit()
d.releasePool << d.shadowMap;
d.shadowMap->create();
- d.shadowSampler = m_r->newSampler(QRhiSampler::Linear, QRhiSampler::Linear, QRhiSampler::None,
+ d.shadowSampler = m_r->newSampler(QRhiSampler::Nearest, QRhiSampler::Nearest, QRhiSampler::None,
QRhiSampler::ClampToEdge, QRhiSampler::ClampToEdge);
d.releasePool << d.shadowSampler;
d.shadowSampler->setTextureCompareOp(QRhiSampler::Less);