Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused reference to .buffer #6875

Merged
merged 1 commit into from
Jul 20, 2015
Merged

Unused reference to .buffer #6875

merged 1 commit into from
Jul 20, 2015

Conversation

dubejf
Copy link
Contributor

@dubejf dubejf commented Jul 18, 2015

attribute.buffer does seem to exist anymore. The only .buffer property I could find was in Audio.

This seems to be a leftover from 4c7239e, when .buffer was renamed .__webglBuffer.

After stepping through with a debugger in onGeometryDispose, I couldn't find any hidden state attached to the BufferAttribute. .__webglBuffer is attached to the WebGLProperties, not the BufferAttribute.

With that, the last reference to gl.deleteBuffer is disappearing from the library. Is that expected?

`attribute.buffer` does seem to exist anymore. The only `.buffer`
property I could find was in `Audio`.

This seems to be a leftover from
4c7239e, when `.buffer` was renamed
`.__webglBuffer`.

After stepping through with a debugger in `onGeometryDispose`, I
couldn't find any hidden state attached to the `BufferAttribute`.
`.__webglBuffer`  is attached to the `WebGLProperties`, not the
`BufferAttribute`.

With that, the last reference to `gl.deleteBuffer` is disappearing from
the library. Is that expected?
@mrdoob
Copy link
Owner

mrdoob commented Jul 20, 2015

With that, the last reference to gl.deleteBuffer is disappearing from the library. Is that expected?

Yeah, the disposing for geometry is still on the works.

We can remove this by now.

mrdoob added a commit that referenced this pull request Jul 20, 2015
@mrdoob mrdoob merged commit 0364c8e into mrdoob:dev Jul 20, 2015
@mrdoob
Copy link
Owner

mrdoob commented Jul 20, 2015

Thanks!

@dubejf dubejf deleted the unused-buffer branch July 21, 2015 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants