Skip to content

Commit

Permalink
Bug 1663003 [Linux/EGL] Use GLX to find X Visual for EGL as a workaro…
Browse files Browse the repository at this point in the history
  • Loading branch information
stransky committed Sep 10, 2020
1 parent a854f80 commit fe33203
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion widget/gtk/nsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4346,7 +4346,11 @@ nsresult nsWindow::Create(nsIWidget* aParent, nsNativeWidget aNativeParent,
int visualId = 0;
bool haveVisual;

if (!gfx::gfxVars::UseEGL()) {
// See https://bugzilla.mozilla.org/show_bug.cgi?id=1663003
// We need to use GLX to get visual even on EGL until
// EGL can provide compositable visual:
// https://gitlab.freedesktop.org/mesa/mesa/-/issues/149
if (true /* !gfx::gfxVars::UseEGL() */) {
auto display = GDK_DISPLAY_XDISPLAY(gtk_widget_get_display(mShell));
int screenNumber = GDK_SCREEN_XNUMBER(screen);
haveVisual = GLContextGLX::FindVisual(
Expand Down

0 comments on commit fe33203

Please sign in to comment.