diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-14 17:30:59 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2020-09-15 01:41:13 +0200 |
commit | 9815ebf24b5aa148a416ee3b159088f0092d2715 (patch) | |
tree | b86cf5ddb2ddebe72d6f4ae5040e77342fa459e7 /examples | |
parent | fce84f76f04957e51f1d92129236733d9bf7d08a (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 'examples')
-rw-r--r-- | examples/opengl/qopenglwidget/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/opengl/qopenglwidget/main.cpp b/examples/opengl/qopenglwidget/main.cpp index 42fc772445..968b2a7258 100644 --- a/examples/opengl/qopenglwidget/main.cpp +++ b/examples/opengl/qopenglwidget/main.cpp @@ -50,6 +50,7 @@ #include <QApplication> #include <QMainWindow> +#include <QColorSpace> #include <QSurfaceFormat> #include <QCommandLineParser> #include <QCommandLineOption> @@ -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); |