No issue - Stop WebGL context forcing spew in non-debug builds.

This commit is contained in:
Moonchild 2024-11-15 21:45:59 +01:00 committed by roytam1
commit a6c54d0736

View file

@ -1824,7 +1824,9 @@ WebGLContext::UpdateContextLossStatus()
void
WebGLContext::ForceLoseContext(bool simulateLosing)
{
#ifdef DEBUG
printf_stderr("WebGL(%p)::ForceLoseContext\n", this);
#endif
MOZ_ASSERT(!IsContextLost());
mContextStatus = ContextLostAwaitingEvent;
mContextLostErrorSet = false;
@ -1840,7 +1842,9 @@ WebGLContext::ForceLoseContext(bool simulateLosing)
void
WebGLContext::ForceRestoreContext()
{
#ifdef DEBUG
printf_stderr("WebGL(%p)::ForceRestoreContext\n", this);
#endif
mContextStatus = ContextLostAwaitingRestore;
mAllowContextRestore = true; // Hey, you did say 'force'.