2018-03-16 19:03:45 +01:00
|
|
|
diff --git ui/gl/init/gl_initializer_mac.cc ui/gl/init/gl_initializer_mac.cc
|
2022-11-15 18:50:53 +01:00
|
|
|
index 3185c6221b921..179072f60e930 100644
|
2018-03-16 19:03:45 +01:00
|
|
|
--- ui/gl/init/gl_initializer_mac.cc
|
|
|
|
+++ ui/gl/init/gl_initializer_mac.cc
|
2022-07-21 19:26:10 +02:00
|
|
|
@@ -46,11 +46,8 @@ bool InitializeOneOffForSandbox() {
|
2018-03-16 19:03:45 +01:00
|
|
|
// GPU-related stuff is very slow without this, probably because
|
|
|
|
// the sandbox prevents loading graphics drivers or some such.
|
|
|
|
std::vector<CGLPixelFormatAttribute> attribs;
|
|
|
|
- if (GLContext::SwitchableGPUsSupported()) {
|
|
|
|
- // Avoid switching to the discrete GPU just for this pixel
|
|
|
|
- // format selection.
|
|
|
|
- attribs.push_back(kCGLPFAAllowOfflineRenderers);
|
|
|
|
- }
|
|
|
|
+ // Avoid switching to the discrete GPU just for this pixel format selection.
|
|
|
|
+ attribs.push_back(kCGLPFAAllowOfflineRenderers);
|
2022-07-21 19:26:10 +02:00
|
|
|
attribs.push_back(static_cast<CGLPixelFormatAttribute>(0));
|
|
|
|
|
|
|
|
CGLPixelFormatObj format;
|