mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-04 06:48:38 +09:00
ported upstream mozilla esr60 changes: bug1515052, bug1539219, bug1547757, bug1555523
This commit is contained in:
parent
fbb9e05a43
commit
bc81a6d5f5
12 changed files with 49 additions and 43 deletions
|
|
@ -25,7 +25,7 @@ WebGLExtensionVertexArray::~WebGLExtensionVertexArray()
|
|||
already_AddRefed<WebGLVertexArray>
|
||||
WebGLExtensionVertexArray::CreateVertexArrayOES()
|
||||
{
|
||||
if (mIsLost)
|
||||
if (mIsLost || !mContext)
|
||||
return nullptr;
|
||||
|
||||
return mContext->CreateVertexArray();
|
||||
|
|
@ -34,7 +34,7 @@ WebGLExtensionVertexArray::CreateVertexArrayOES()
|
|||
void
|
||||
WebGLExtensionVertexArray::DeleteVertexArrayOES(WebGLVertexArray* array)
|
||||
{
|
||||
if (mIsLost)
|
||||
if (mIsLost || !mContext)
|
||||
return;
|
||||
|
||||
mContext->DeleteVertexArray(array);
|
||||
|
|
@ -43,7 +43,7 @@ WebGLExtensionVertexArray::DeleteVertexArrayOES(WebGLVertexArray* array)
|
|||
bool
|
||||
WebGLExtensionVertexArray::IsVertexArrayOES(const WebGLVertexArray* array)
|
||||
{
|
||||
if (mIsLost)
|
||||
if (mIsLost || !mContext)
|
||||
return false;
|
||||
|
||||
return mContext->IsVertexArray(array);
|
||||
|
|
@ -52,7 +52,7 @@ WebGLExtensionVertexArray::IsVertexArrayOES(const WebGLVertexArray* array)
|
|||
void
|
||||
WebGLExtensionVertexArray::BindVertexArrayOES(WebGLVertexArray* array)
|
||||
{
|
||||
if (mIsLost)
|
||||
if (mIsLost || !mContext)
|
||||
return;
|
||||
|
||||
mContext->BindVertexArray(array);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue