Use WeakPtr for extension parent pointer.

This commit is contained in:
wolfbeast 2019-07-20 18:08:16 +02:00 committed by Roy Tam
commit 08ccf18274
8 changed files with 55 additions and 33 deletions

View file

@ -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;
}