mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 14:58:37 +09:00
Use WeakPtr for extension parent pointer.
This commit is contained in:
parent
a10e2214ee
commit
08ccf18274
8 changed files with 55 additions and 33 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue