Destroy sub-materials. #567

Merged
merged 1 commit into from Mar 16, 2013

Conversation

Projects
None yet
2 participants
@bagnell
Member

bagnell commented Mar 15, 2013

Sub-materials were created with initializeMaterial instead of the Material constructor so the isDestroyed and destroy methods were not on sub-material prototypes. It's important to destroy all materials that may create WebGL resources when finished.

@pjcozzi

This comment has been minimized.

Show comment Hide comment
@pjcozzi

pjcozzi Mar 16, 2013

Member

Code looks good. Tests pass. No need to update CHANGES.md.

Member

pjcozzi commented Mar 16, 2013

Code looks good. Tests pass. No need to update CHANGES.md.

pjcozzi added a commit that referenced this pull request Mar 16, 2013

@pjcozzi pjcozzi merged commit b065f81 into master Mar 16, 2013

@pjcozzi pjcozzi deleted the destroyMaterial branch Mar 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment