diff --git a/gfx/thebes/gfxPlatformGtk.cpp b/gfx/thebes/gfxPlatformGtk.cpp index e7bd6213415d..7ad80f9f08ac 100644 --- a/gfx/thebes/gfxPlatformGtk.cpp +++ b/gfx/thebes/gfxPlatformGtk.cpp @@ -166,6 +166,11 @@ void gfxPlatformGtk::InitX11EGLConfig() { feature.ForceDisable(FeatureStatus::Broken, "glxtest could not use EGL", "FEATURE_FAILURE_GLXTEST_NO_EGL"_ns); } + + if (feature.IsEnabled() && IsX11Display()) { + // Enabling glthread crashes on X11/EGL, see bug 1670545 + PR_SetEnv("mesa_glthread=false"); + } #else feature.DisableByDefault(FeatureStatus::Unavailable, "X11 support missing", "FEATURE_FAILURE_NO_X11"_ns);