summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLExtensionDebugShaders.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/WebGLExtensionDebugShaders.cpp')
-rw-r--r--dom/canvas/WebGLExtensionDebugShaders.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/dom/canvas/WebGLExtensionDebugShaders.cpp b/dom/canvas/WebGLExtensionDebugShaders.cpp
index 75880465e..8399aeb95 100644
--- a/dom/canvas/WebGLExtensionDebugShaders.cpp
+++ b/dom/canvas/WebGLExtensionDebugShaders.cpp
@@ -29,15 +29,10 @@ WebGLExtensionDebugShaders::GetTranslatedShaderSource(const WebGLShader& shader,
{
retval.SetIsVoid(true);
- if (mIsLost) {
- mContext->ErrorInvalidOperation("%s: Extension is lost.",
- "getTranslatedShaderSource");
+ if (mIsLost || !mContext) {
return;
}
- if (mContext->IsContextLost())
- return;
-
if (!mContext->ValidateObject("getShaderTranslatedSource: shader", shader))
return;