Backed out changeset 475168143f2e (bug 980178) to fix webgl bustage on a CLOSED TREE

This commit is contained in:
Wes Kocher 2014-05-12 19:10:30 -07:00
parent 3ba6da388d
commit 028d03e735

View File

@ -1311,6 +1311,7 @@ WebGLContext::UpdateContextLossStatus()
void
WebGLContext::ForceLoseContext()
{
printf_stderr("WebGL(%p)::ForceLoseContext\n", this);
MOZ_ASSERT(!IsContextLost());
mContextStatus = ContextLostAwaitingEvent;
mContextLostErrorSet = false;
@ -1326,6 +1327,7 @@ WebGLContext::ForceLoseContext()
void
WebGLContext::ForceRestoreContext()
{
printf_stderr("WebGL(%p)::ForceRestoreContext\n", this);
mContextStatus = ContextLostAwaitingRestore;
mAllowContextRestore = true; // Hey, you did say 'force'.