qml tool: Fix incorrect mapping of --transparent to MSAA

Change-Id: Ief9f12c1b3dfab928b110278c1d49abb1028efe0
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
This commit is contained in:
Laszlo Agocs 2023-03-16 16:21:37 +01:00
parent 3bc05bf7f4
commit e936e466a5
1 changed files with 1 additions and 1 deletions

View File

@ -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")