diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 18:08:16 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-07-20 18:08:16 +0200 |
commit | f567052ba82bc6297d484f6d80b7b29ec70bd0b8 (patch) | |
tree | 19bcf01fa0461ea1bda12a2526a8ddcde4fc2ca0 /dom/canvas/WebGLExtensionDrawBuffers.cpp | |
parent | 95d4c7615f682655403f837c863ac346812fd1c3 (diff) | |
download | aura-central-f567052ba82bc6297d484f6d80b7b29ec70bd0b8.tar.gz |
Use WeakPtr for extension parent pointer.
Diffstat (limited to 'dom/canvas/WebGLExtensionDrawBuffers.cpp')
-rw-r--r-- | dom/canvas/WebGLExtensionDrawBuffers.cpp | 4 |
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; } |