diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-11-28 14:09:56 +0100 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2017-11-29 08:42:29 +0000 |
commit | efa6d3f0d3a01753dd40823ce119e7d4f9765c8e (patch) | |
tree | f304d4aded8b40de0eb745c5cf8ca63ee3aba101 /src/core/web_engine_context.cpp | |
parent | 65c1f255e6282bc7dda942f72de7f9d67824f2a6 (diff) |
Fix broken rendering of select popups on macOSv5.10.0-rc3v5.10.0-rc2v5.10.0
Pass the kDisableNativeGpuMemoryBuffers flag to Chromium, so it does
not generate GL_TEXTURE_RECTANGLE_ARB textures, which caused the
rendering issues for popups.
Task-number: QTBUG-64823
Change-Id: Ie7b5824eed870ce5c89ff66ba3309f85f9261c81
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index f3818b194..9fbe12357 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -68,6 +68,7 @@ #include "content/renderer/in_process_renderer_thread.h" #include "content/utility/in_process_utility_thread.h" #include "gpu/command_buffer/service/gpu_switches.h" +#include "gpu/ipc/host/gpu_switches.h" #include "net/base/port_util.h" #include "ppapi/features/features.h" #include "ui/events/event_switches.h" @@ -341,6 +342,8 @@ WebEngineContext::WebEngineContext() parsedCommandLine->AppendSwitch(switches::kDisableAcceleratedVideoDecode); // Same problem with Pepper using OpenGL images. parsedCommandLine->AppendSwitch(switches::kDisablePepper3DImageChromium); + // Same problem with select popups. + parsedCommandLine->AppendSwitch(switches::kDisableNativeGpuMemoryBuffers); #endif #if defined(Q_OS_WIN) |