Bug 1151736 - More information to pick up with crash reports. r=jgilbert

--HG--
extra : rebase_source : 905a9b6d27b4ff3a1b0dcac2314c331d1de6bf9a
This commit is contained in:
Milan Sreckovic 2015-04-23 11:57:10 -07:00
Родитель 6a3f08dba0
Коммит 31ef03baac
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -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.