diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-03-16 16:21:37 +0100 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-03-17 12:12:52 +0100 |
| commit | e936e466a57824470a7bcdc69ec6e22899555a49 (patch) | |
| tree | bc460e24fd5730e13c55a2cbb20b84f48dcd96df /tools/qml/main.cpp | |
| parent | 3bc05bf7f422fccd8c29bd1eb1376c37264d31ee (diff) | |
qml tool: Fix incorrect mapping of --transparent to MSAA
Change-Id: Ief9f12c1b3dfab928b110278c1d49abb1028efe0
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'tools/qml/main.cpp')
| -rw-r--r-- | tools/qml/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/qml/main.cpp b/tools/qml/main.cpp index ca6b680b39..086bd772d7 100644 --- a/tools/qml/main.cpp +++ b/tools/qml/main.cpp @@ -382,7 +382,7 @@ int main(int argc, char *argv[]) surfaceFormat.setStencilBufferSize(8); if (requestMSAA) surfaceFormat.setSamples(4); - if (requestMSAA) + if (requestAlphaChannel) surfaceFormat.setAlphaBufferSize(8); if (qEnvironmentVariableIsSet("QSG_CORE_PROFILE") || qEnvironmentVariableIsSet("QML_CORE_PROFILE") |
