From 49f4a46acf9d0dfaa91d68faa23e3b413aa6c4bb Mon Sep 17 00:00:00 2001 From: sotaro Date: Fri, 23 Feb 2018 15:22:23 +0900 Subject: [PATCH] Bug 1438759 - Update debug flags in RendererOGL::Update() r=nical --- gfx/webrender_bindings/RendererOGL.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gfx/webrender_bindings/RendererOGL.cpp b/gfx/webrender_bindings/RendererOGL.cpp index 2caaab821a78..814d8c9cf858 100644 --- a/gfx/webrender_bindings/RendererOGL.cpp +++ b/gfx/webrender_bindings/RendererOGL.cpp @@ -84,6 +84,12 @@ RendererOGL::GetExternalImageHandler() void RendererOGL::Update() { + uint32_t flags = gfx::gfxVars::WebRenderDebugFlags(); + if (mDebugFlags.mBits != flags) { + mDebugFlags.mBits = flags; + wr_renderer_set_debug_flags(mRenderer, mDebugFlags); + } + if (gl()->MakeCurrent()) { wr_renderer_update(mRenderer); }