Index: third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp |
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp |
index 09a23f0821d73aed880d2746210505353e6575ee..86a1b2a3870f3f042c41da2298c51040166606bd 100644 |
--- a/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp |
+++ b/third_party/WebKit/Source/modules/webgl/WebGLVertexArrayObjectBase.cpp |
@@ -17,7 +17,7 @@ WebGLVertexArrayObjectBase::WebGLVertexArrayObjectBase( |
m_type(type), |
m_hasEverBeenBound(false), |
m_destructionInProgress(false), |
- m_boundElementArrayBuffer(nullptr), |
+ m_boundElementArrayBuffer(this, nullptr), |
m_isAllEnabledAttribBufferBound(true) { |
m_arrayBufferList.resize(ctx->maxVertexAttribs()); |
m_attribEnabled.resize(ctx->maxVertexAttribs()); |
@@ -94,7 +94,7 @@ void WebGLVertexArrayObjectBase::setArrayBufferForAttrib(GLuint index, |
if (m_arrayBufferList[index]) |
m_arrayBufferList[index]->onDetached(context()->contextGL()); |
- m_arrayBufferList[index] = buffer; |
+ m_arrayBufferList[index] = TraceWrapperMember<WebGLBuffer>(this, buffer); |
updateAttribBufferBoundStatus(); |
} |