diff options
author | James McDonnell <jmcdonnell@blackberry.com> | 2018-03-05 14:44:19 -0500 |
---|---|---|
committer | James McDonnell <jmcdonnell@blackberry.com> | 2018-07-06 17:33:22 +0000 |
commit | a70f30add391525d9a30e61b3df3f9834e804b17 (patch) | |
tree | 3bc90fb3b3bfa0cb78d3ac80ece45ab1d79c9701 | |
parent | 6c0766adbd3088958e3885f7a7da00f1b2adcd1c (diff) | |
download | qtbase-a70f30add391525d9a30e61b3df3f9834e804b17.tar.gz |
Flush the initial clear blit with SCREEN_WAIT_IDLE
Without it, the clear runs asynchronously and screen may clear
pixels _after_ Qt updates them.
Change-Id: I0c0844676d8a4387439a2f818ee08942ccaf6b08
Reviewed-by: Dan Cape <dcape@qnx.com>
Reviewed-by: Janne Koskinen <janne.p.koskinen@qt.io>
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
(cherry picked from commit 8bcb8b069e9a35226c1465265d4d716c864dde54)
-rw-r--r-- | src/plugins/platforms/qnx/qqnxrasterwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/qnx/qqnxrasterwindow.cpp b/src/plugins/platforms/qnx/qqnxrasterwindow.cpp index 7f11de228e..06c5f36b09 100644 --- a/src/plugins/platforms/qnx/qqnxrasterwindow.cpp +++ b/src/plugins/platforms/qnx/qqnxrasterwindow.cpp @@ -157,7 +157,7 @@ QQnxBuffer &QQnxRasterWindow::renderBuffer() "Failed to clear window buffer"); } - Q_SCREEN_CHECKERROR(screen_flush_blits(screen()->nativeContext(), 0), + Q_SCREEN_CHECKERROR(screen_flush_blits(screen()->nativeContext(), SCREEN_WAIT_IDLE), "Failed to flush blits"); // Use the first available render buffer |