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

Do not require passing WebGL context in order to destroy buffers/VAOs #3351

Merged
merged 1 commit into from
Oct 12, 2016

Conversation

jfirebaugh
Copy link
Contributor

This mirrors Unique{Buffer,VAO} in native: a reference to the context is necessary to create, but the resulting object knows how to destroy itself without additional arguments.

It also reduces the number of places where Source objects need a painter or map reference (#3350).

This mirrors Unique{Buffer,VAO} in native: a reference to the context is necessary to create, but the resulting object knows how to destroy itself without additional arguments.

It also reduces the number of places where Source objects need a painter or map reference.
@jfirebaugh jfirebaugh merged commit 31523a8 into master Oct 12, 2016
@jfirebaugh jfirebaugh deleted the destroy-gl branch October 12, 2016 15:50
anandthakker pushed a commit that referenced this pull request Mar 13, 2017
extends #3351 which changed the function unloadVectorData to take 0 parameters instead of 1. 

* FIX unloadVectorData call with 1 argument where 0 are expected

* Changed test to assert that unloadVectorData is called with 0 parameters before overwriting
andrewharvey pushed a commit to andrewharvey/mapbox-gl-js that referenced this pull request Mar 17, 2017
extends mapbox#3351 which changed the function unloadVectorData to take 0 parameters instead of 1. 

* FIX unloadVectorData call with 1 argument where 0 are expected

* Changed test to assert that unloadVectorData is called with 0 parameters before overwriting
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