Destroy sub-materials. #567

merged 1 commit into from Mar 16, 2013


None yet
2 participants

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.


This comment has been minimized.

Show comment Hide comment

pjcozzi Mar 16, 2013


Code looks good. Tests pass. No need to update


pjcozzi commented Mar 16, 2013

Code looks good. Tests pass. No need to update

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