away3d/away3d-core-fp11 — Issue #167: MaterialBase.dispose(true) error
Author: profelis
Created: 2011-10-26 12:21:33+00:00
State: open

Simple code

frontMaterial = new ColorMaterial(0x666666);
...
frontMaterial.dispose(true);

RangeError: Error #1125: The index -1 is out of range 24.

at away3d.materials::MaterialLibrary/unregisterMaterial()[D:\dev\src\away3d\materials\MaterialLibrary.as:107]
at away3d.materials::MaterialBase/dispose()[D:\dev\src\away3d\materials\MaterialBase.as:165]