public override void dispose()
 {
     AsStarling.getCurrent().getStage3D().removeEventListener(AsEvent.CONTEXT3D_CREATE, onContextCreated);
     if (mVertexBuffer != null)
     {
         mVertexBuffer.dispose();
     }
     if (mIndexBuffer != null)
     {
         mIndexBuffer.dispose();
     }
     base.dispose();
 }
 public virtual void dispose()
 {
     if (mVertexBuffer != null)
     {
         mVertexBuffer.dispose();
     }
     if (mIndexBuffer != null)
     {
         mIndexBuffer.dispose();
     }
     disposePassTextures();
     disposeCache();
 }