From 9815ebf24b5aa148a416ee3b159088f0092d2715 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Mon, 14 Sep 2020 17:30:59 +0200 Subject: Switch QSurfaceFormat::colorSpace to a QColorSpace MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Allows more flexibility in the future. Change-Id: Idcf2d8ddaee268a7b5d55379ccb42dd9b3c33abf Reviewed-by: Tor Arne Vestbø --- examples/opengl/qopenglwidget/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'examples/opengl/qopenglwidget/main.cpp') diff --git a/examples/opengl/qopenglwidget/main.cpp b/examples/opengl/qopenglwidget/main.cpp index 42fc7724456..968b2a72581 100644 --- a/examples/opengl/qopenglwidget/main.cpp +++ b/examples/opengl/qopenglwidget/main.cpp @@ -50,6 +50,7 @@ #include #include +#include #include #include #include @@ -77,7 +78,7 @@ int main( int argc, char ** argv ) format.setDepthBufferSize(24); format.setStencilBufferSize(8); if (parser.isSet(srgbOption)) - format.setColorSpace(QSurfaceFormat::sRGBColorSpace); + format.setColorSpace(QColorSpace::SRgb); if (parser.isSet(multipleSampleOption)) format.setSamples(4); QSurfaceFormat::setDefaultFormat(format); -- cgit v1.2.3