summaryrefslogtreecommitdiffstats
path: root/dom/canvas/WebGLExtensionDrawBuffers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dom/canvas/WebGLExtensionDrawBuffers.cpp')
-rw-r--r--dom/canvas/WebGLExtensionDrawBuffers.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dom/canvas/WebGLExtensionDrawBuffers.cpp b/dom/canvas/WebGLExtensionDrawBuffers.cpp
index 27aa76cc7..6f386621f 100644
--- a/dom/canvas/WebGLExtensionDrawBuffers.cpp
+++ b/dom/canvas/WebGLExtensionDrawBuffers.cpp
@@ -36,7 +36,9 @@ void
WebGLExtensionDrawBuffers::DrawBuffersWEBGL(const dom::Sequence<GLenum>& buffers)
{
if (mIsLost) {
- mContext->ErrorInvalidOperation("drawBuffersWEBGL: Extension is lost.");
+ if (mContext) {
+ mContext->ErrorInvalidOperation("drawBuffersWEBGL: Extension is lost.");
+ }
return;
}