зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1151736 - More information to pick up with crash reports. r=jgilbert
--HG-- extra : rebase_source : 905a9b6d27b4ff3a1b0dcac2314c331d1de6bf9a
This commit is contained in:
Родитель
6a3f08dba0
Коммит
31ef03baac
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче