Bug 1908380 - Check for context loss in WebGLVertexArrayJS::WebGLVertexArrayJS. r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D217634
This commit is contained in:
Kelsey Gilbert
2024-07-24 21:45:34 +00:00
parent a8b746d326
commit ee4554d100

View File

@@ -6718,7 +6718,7 @@ WebGLTransformFeedbackJS::WebGLTransformFeedbackJS(
WebGLVertexArrayJS::WebGLVertexArrayJS(const ClientWebGLContext* const webgl)
: webgl::ObjectJS(webgl),
mAttribBuffers(webgl ? webgl->Limits().maxVertexAttribs : 0) {}
mAttribBuffers(Context() ? Context()->Limits().maxVertexAttribs : 0) {}
// -