diff options
author | Andre de la Rocha <andre.rocha@qt.io> | 2018-08-15 20:35:28 +0200 |
---|---|---|
committer | Andre de la Rocha <andre.rocha@qt.io> | 2018-08-23 09:32:32 +0000 |
commit | 38cb72b6fd34142785d0f791218d39ccafcfe84f (patch) | |
tree | 4cfe093af8b10a9b87c2b8e5701379aead2ad44b /src/plugins/platforms/windows/qwindowsopengltester.h | |
parent | c9c770d775842a6c8ab60f951de25dd32b0bdb1e (diff) |
Windows QPA: Force windows to the main screen in certain AMD GPU setups
A multi-screen setup with an AMD adapter set as the 'main display' leads
to using the AMD drivers for OpenGL. This then causes a crash when calling
SetPixelFormat and similar for windows located on another adapter's
screen. This workaround detects the conditions leading to the crash and moves
the window to the main display.
Task-number: QTBUG-50371
Change-Id: I4007c490bdcdc13d6e8bce82983b150aa4930338
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsopengltester.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsopengltester.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsopengltester.h b/src/plugins/platforms/windows/qwindowsopengltester.h index 5ee2508462..22170f30b0 100644 --- a/src/plugins/platforms/windows/qwindowsopengltester.h +++ b/src/plugins/platforms/windows/qwindowsopengltester.h @@ -62,6 +62,7 @@ struct GpuDescription QVersionNumber driverVersion; QByteArray driverName; QByteArray description; + QString gpuSuitableScreen; }; #ifndef QT_NO_DEBUG_STREAM |