summaryrefslogtreecommitdiffstats
path: root/tests/manual
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-14 17:30:59 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-09-15 01:41:13 +0200
commit9815ebf24b5aa148a416ee3b159088f0092d2715 (patch)
treeb86cf5ddb2ddebe72d6f4ae5040e77342fa459e7 /tests/manual
parentfce84f76f04957e51f1d92129236733d9bf7d08a (diff)
Switch QSurfaceFormat::colorSpace to a QColorSpace
Allows more flexibility in the future. Change-Id: Idcf2d8ddaee268a7b5d55379ccb42dd9b3c33abf Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual')
-rw-r--r--tests/manual/rhi/shared/examplefw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/manual/rhi/shared/examplefw.h b/tests/manual/rhi/shared/examplefw.h
index cac9a5cfdf..b96b13eafb 100644
--- a/tests/manual/rhi/shared/examplefw.h
+++ b/tests/manual/rhi/shared/examplefw.h
@@ -520,7 +520,7 @@ int main(int argc, char **argv)
if (scFlags.testFlag(QRhiSwapChain::NoVSync))
fmt.setSwapInterval(0);
if (scFlags.testFlag(QRhiSwapChain::sRGB))
- fmt.setColorSpace(QSurfaceFormat::sRGBColorSpace);
+ fmt.setColorSpace(QColorSpace::SRgb);
// Exception: The alpha size is not necessarily OpenGL specific.
if (transparentBackground)
fmt.setAlphaBufferSize(8);