This repository has been archived by the owner on Jun 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GTK] GLXBadFBConfig error when creating an OpenGL context
https://bugs.webkit.org/show_bug.cgi?id=165200 Reviewed by Carlos Garcia Campos. glXCreateContextAttribsARB causes a GLXBadFBConfig X error when it's not able to provide the OpenGL version >= 3.2 we are requesting. Due to this, the app crashes instead of falling back to the legacy path. The patch modifies GLX context creation using a XErrorTrapper, so the first time a context is created we don't crash if OpenGL >= 3.2 is not available. If the gotten context is not valid, we fall back to whatever version glXCreateContextAttribsARB is able to provide. The legacy glXCreateContext is only used if the GLX_ARB_create_context extension is not available. Covered by existent tests. * platform/graphics/glx/GLContextGLX.cpp: (WebCore::tryCreateGLXARBContext): (WebCore::GLContextGLX::createWindowContext): (WebCore::GLContextGLX::createPbufferContext): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@209982 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
0389b67
commit 41dc4cc
Showing
2 changed files
with
75 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
2016-12-19 Miguel Gomez <[email protected]> | ||
|
||
[GTK] GLXBadFBConfig error when creating an OpenGL context | ||
https://bugs.webkit.org/show_bug.cgi?id=165200 | ||
|
||
Reviewed by Carlos Garcia Campos. | ||
|
||
glXCreateContextAttribsARB causes a GLXBadFBConfig X error when it's not able to provide the | ||
OpenGL version >= 3.2 we are requesting. Due to this, the app crashes instead of falling back to | ||
the legacy path. | ||
The patch modifies GLX context creation using a XErrorTrapper, so the first time a context is created | ||
we don't crash if OpenGL >= 3.2 is not available. | ||
If the gotten context is not valid, we fall back to whatever version glXCreateContextAttribsARB is | ||
able to provide. | ||
The legacy glXCreateContext is only used if the GLX_ARB_create_context extension is not available. | ||
|
||
Covered by existent tests. | ||
|
||
* platform/graphics/glx/GLContextGLX.cpp: | ||
(WebCore::tryCreateGLXARBContext): | ||
(WebCore::GLContextGLX::createWindowContext): | ||
(WebCore::GLContextGLX::createPbufferContext): | ||
|
||
2016-12-18 Brady Eidson <[email protected]> | ||
|
||
IndexedDB 2.0: Prefetch cursor records in the server. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters