Enable WIDGETS_RHI when HIGHDPI_DOWNSCALE is set
QT_WIDGETS_HIGHDPI_DOWNSCALE requires the rhi backing store backend for GPU downscaling. Enable that automatically to make the downscale functionality easier to use. Change-Id: I27a538fef426768fe69fcfe07104136209b3bae2 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> (cherry picked from commit 672310c74691c60b303520c69287d73d07ab32a1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
db58564f4f
commit
0285424930
@ -265,7 +265,10 @@ bool QBackingStoreRhiSupport::checkForceRhi(QPlatformBackingStoreRhiConfig *outC
|
||||
checked = true;
|
||||
|
||||
const bool alwaysRhi = qEnvironmentVariableIntValue("QT_WIDGETS_RHI");
|
||||
if (alwaysRhi)
|
||||
const bool highdpiDownscale = qEnvironmentVariableIntValue("QT_WIDGETS_HIGHDPI_DOWNSCALE");
|
||||
if (highdpiDownscale)
|
||||
qCDebug(lcQpaBackingStore) << "Enabling QT_WIDGETS_RHI due to QT_WIDGETS_HIGHDPI_DOWNSCALE";
|
||||
if (alwaysRhi || highdpiDownscale)
|
||||
config.setEnabled(true);
|
||||
|
||||
// if enabled, choose an api
|
||||
|
Loading…
x
Reference in New Issue
Block a user