diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-26 09:37:49 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2019-09-26 17:02:12 +0200 |
commit | 22d22eb2824fb06f69f87bda27b1cfdf45efbc1f (patch) | |
tree | 50b6c23af4266d259ff6ad14c8dbfe8f357c905d /tests/manual/rhi/msaatexture | |
parent | 30e27328e3d6446a343107c96f41324197ed7ef1 (diff) |
rhi: Add a --transparent option to manual tests
This will also cause clearing to 0,0,0,0.
Essential in order to allow fast testing of window transparency
issues in combination with QRhi and the various backends.
Change-Id: Iee2763c1d06f1d3e5d59a9142abaf30fab1dc543
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'tests/manual/rhi/msaatexture')
-rw-r--r-- | tests/manual/rhi/msaatexture/msaatexture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rhi/msaatexture/msaatexture.cpp b/tests/manual/rhi/msaatexture/msaatexture.cpp index 46a9b2830c..d23a4a8d47 100644 --- a/tests/manual/rhi/msaatexture/msaatexture.cpp +++ b/tests/manual/rhi/msaatexture/msaatexture.cpp @@ -315,7 +315,7 @@ void Window::customRender() // onscreen const QSize outputSizeInPixels = m_sc->currentPixelSize(); - cb->beginPass(m_sc->currentFrameRenderTarget(), QColor::fromRgbF(0.4f, 0.7f, 0.0f, 1.0f), { 1.0f, 0 }); + cb->beginPass(m_sc->currentFrameRenderTarget(), m_clearColor, { 1.0f, 0 }); cb->setGraphicsPipeline(d.psLeft); // showing the non-msaa version cb->setViewport({ 0, 0, float(outputSizeInPixels.width()), float(outputSizeInPixels.height()) }); cb->setShaderResources(); |