diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:43:14 +0000 |
commit | 8dd16259287f58f9273002717ec4d27e97127719 (patch) | |
tree | 3863e62a53829a84037444beab3abd4ed9dfc7d0 /gfx/gl/GLContextProviderGLX.cpp | |
parent | Releasing progress-linux version 126.0.1-1~progress7.99u1. (diff) | |
download | firefox-8dd16259287f58f9273002717ec4d27e97127719.tar.xz firefox-8dd16259287f58f9273002717ec4d27e97127719.zip |
Merging upstream version 127.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/gl/GLContextProviderGLX.cpp')
-rw-r--r-- | gfx/gl/GLContextProviderGLX.cpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gfx/gl/GLContextProviderGLX.cpp b/gfx/gl/GLContextProviderGLX.cpp index cdc5e7ce1a..a7218cd39f 100644 --- a/gfx/gl/GLContextProviderGLX.cpp +++ b/gfx/gl/GLContextProviderGLX.cpp @@ -603,9 +603,8 @@ already_AddRefed<GLContext> CreateForWidget(Display* aXDisplay, Window aXWindow, GLXFBConfig config; int visid; - if (!GLContextGLX::FindFBConfigForWindow(aXDisplay, xscreen, aXWindow, - &config, &visid, - aHardwareWebRender)) { + if (!GLContextGLX::FindFBConfigForWindow( + aXDisplay, xscreen, aXWindow, &config, &visid, aHardwareWebRender)) { return nullptr; } @@ -658,7 +657,8 @@ static bool ChooseConfig(GLXLibrary* glx, Display* display, int screen, }; int numConfigs = 0; - const auto scopedConfigArr = glx->fChooseFBConfig(display, screen, attribs, &numConfigs); + const auto scopedConfigArr = + glx->fChooseFBConfig(display, screen, attribs, &numConfigs); const auto freeConfigList = MakeScopeExit([&]() { if (scopedConfigArr) { XFree(scopedConfigArr); @@ -764,9 +764,11 @@ bool GLContextGLX::FindVisual(Display* display, int screen, return false; } -bool GLContextGLX::FindFBConfigForWindow( - Display* display, int screen, Window window, - GLXFBConfig* const out_config, int* const out_visid, bool aWebRender) { +bool GLContextGLX::FindFBConfigForWindow(Display* display, int screen, + Window window, + GLXFBConfig* const out_config, + int* const out_visid, + bool aWebRender) { // XXX the visual ID is almost certainly the LOCAL_GLX_FBCONFIG_ID, so // we could probably do this first and replace the glXGetFBConfigs // with glXChooseConfigs. Docs are sparklingly clear as always. |