From b16ad768bafa140af2bbca1a4bebb696376378a8 Mon Sep 17 00:00:00 2001 From: Milan Sreckovic Date: Thu, 23 Apr 2015 11:57:10 -0700 Subject: [PATCH] Bug 1151736 - More information to pick up with crash reports. r=jgilbert --- dom/canvas/WebGLTexture.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dom/canvas/WebGLTexture.cpp b/dom/canvas/WebGLTexture.cpp index cf50d62afa3..611732aa786 100644 --- a/dom/canvas/WebGLTexture.cpp +++ b/dom/canvas/WebGLTexture.cpp @@ -14,6 +14,7 @@ #include "WebGLContext.h" #include "WebGLContextUtils.h" #include "WebGLTexelConversions.h" +#include "mozilla/gfx/Logging.h" namespace mozilla { @@ -689,6 +690,7 @@ WebGLTexture::EnsureNoUninitializedImageData(TexImageTarget imageTarget, if (error) { // Should only be OUT_OF_MEMORY. Anyway, there's no good way to recover // from this here. + gfxCriticalError() << "GL context GetAndFlushUnderlyingGLErrors " << gfx::hexa(error); printf_stderr("Error: 0x%4x\n", error); MOZ_CRASH(); // Errors on texture upload have been related to video // memory exposure in the past.