summaryrefslogtreecommitdiff
path: root/mozilla-1464823.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2018-05-30 22:05:15 +0200
committerMartin Stransky <stransky@redhat.com>2018-05-30 22:05:15 +0200
commit040ebc21616c58eddcff27cb57177a553c4aeb26 (patch)
treedc17fc251590f5fca32be49b4063e79fd3ad261b /mozilla-1464823.patch
parentAdded fix for mozbz#1464808 - Set default D&D action to move on Wayland (diff)
downloadlibrewolf-fedora-ff-040ebc21616c58eddcff27cb57177a553c4aeb26.tar.gz
librewolf-fedora-ff-040ebc21616c58eddcff27cb57177a553c4aeb26.tar.bz2
librewolf-fedora-ff-040ebc21616c58eddcff27cb57177a553c4aeb26.zip
Added workaround for mozbz#1464823 which makes GL layer compositor usable on Wayland.
Diffstat (limited to 'mozilla-1464823.patch')
-rw-r--r--mozilla-1464823.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/mozilla-1464823.patch b/mozilla-1464823.patch
new file mode 100644
index 0000000..9870d98
--- /dev/null
+++ b/mozilla-1464823.patch
@@ -0,0 +1,27 @@
+Bug 1464823 - Don't sync rendering on Mesa as the Mesa Wayland implementation is buggy.
+
+diff --git a/gfx/gl/GLContextProviderEGL.cpp b/gfx/gl/GLContextProviderEGL.cpp
+--- a/gfx/gl/GLContextProviderEGL.cpp
++++ b/gfx/gl/GLContextProviderEGL.cpp
+@@ -273,20 +273,17 @@ GLContextEGLFactory::Create(EGLNativeWin
+ if (!gl) {
+ gfxCriticalNote << "Failed to create EGLContext!";
+ mozilla::gl::DestroySurface(surface);
+ return nullptr;
+ }
+
+ gl->MakeCurrent();
+ gl->SetIsDoubleBuffered(doubleBuffered);
+- if (aWebRender && sEGLLibrary.IsANGLE()) {
+- MOZ_ASSERT(doubleBuffered);
+- sEGLLibrary.fSwapInterval(EGL_DISPLAY(), 0);
+- }
++ sEGLLibrary.fSwapInterval(EGL_DISPLAY(), 0);
+ return gl.forget();
+ }
+
+ GLContextEGL::GLContextEGL(CreateContextFlags flags, const SurfaceCaps& caps,
+ bool isOffscreen, EGLConfig config, EGLSurface surface,
+ EGLContext context)
+ : GLContext(flags, caps, nullptr, isOffscreen, false)
+ , mConfig(config)
bgstack15