From 3fe5de3dab1cc7e772475571de9d5ba6ee7531fc Mon Sep 17 00:00:00 2001 From: Milan Sreckovic Date: Mon, 15 Feb 2016 12:53:00 +0100 Subject: [PATCH] Bug 1247706 - "Please don't disable WebGL if crashed on WebGL context". r=dvander --- gfx/gl/GLContext.cpp | 6 ------ gfx/src/DriverCrashGuard.cpp | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/gfx/gl/GLContext.cpp b/gfx/gl/GLContext.cpp index 06d4d4fccfa8..2fc629466b60 100644 --- a/gfx/gl/GLContext.cpp +++ b/gfx/gl/GLContext.cpp @@ -31,7 +31,6 @@ #include "TextureGarbageBin.h" #include "gfx2DGlue.h" #include "gfxPrefs.h" -#include "DriverCrashGuard.h" #include "mozilla/IntegerPrintfMacros.h" #include "OGLShaderProgram.h" // for ShaderProgramType @@ -476,11 +475,6 @@ GLContext::InitWithPrefix(const char *prefix, bool trygl) return true; } - GLContextCrashGuard crashGuard; - if (crashGuard.Crashed()) { - return false; - } - mWorkAroundDriverBugs = gfxPrefs::WorkAroundDriverBugs(); SymLoadStruct symbols[] = { diff --git a/gfx/src/DriverCrashGuard.cpp b/gfx/src/DriverCrashGuard.cpp index 34aa39fa1720..4edbe127ab43 100644 --- a/gfx/src/DriverCrashGuard.cpp +++ b/gfx/src/DriverCrashGuard.cpp @@ -525,13 +525,13 @@ GLContextCrashGuard::UpdateEnvironment() void GLContextCrashGuard::LogCrashRecovery() { - gfxCriticalNote << "GLContext just crashed and is now disabled."; + gfxCriticalNote << "GLContext just crashed."; } void GLContextCrashGuard::LogFeatureDisabled() { - gfxCriticalNote << "GLContext is disabled due to a previous crash."; + gfxCriticalNote << "GLContext remains enabled despite a previous crash."; } } // namespace gfx