From a6c54d0736dfae0322372336b46d7a83f0fa4335 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Fri, 15 Nov 2024 21:45:59 +0100 Subject: [PATCH] No issue - Stop WebGL context forcing spew in non-debug builds. --- dom/canvas/WebGLContext.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index 2e7ddb42e0..302aa1f710 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -1824,7 +1824,9 @@ WebGLContext::UpdateContextLossStatus() void WebGLContext::ForceLoseContext(bool simulateLosing) { +#ifdef DEBUG printf_stderr("WebGL(%p)::ForceLoseContext\n", this); +#endif MOZ_ASSERT(!IsContextLost()); mContextStatus = ContextLostAwaitingEvent; mContextLostErrorSet = false; @@ -1840,7 +1842,9 @@ WebGLContext::ForceLoseContext(bool simulateLosing) void WebGLContext::ForceRestoreContext() { +#ifdef DEBUG printf_stderr("WebGL(%p)::ForceRestoreContext\n", this); +#endif mContextStatus = ContextLostAwaitingRestore; mAllowContextRestore = true; // Hey, you did say 'force'.