Exemple #1
0
 /// <summary>
 /// Used to override Detach
 /// </summary>
 protected override void OnDetach()
 {
     bufferModelInternal = null;
     InstanceBuffer.DisposeAndClear();
     BoundManager.DisposeAndClear();
     base.OnDetach();
 }
 /// <summary>
 /// Used to override Detach
 /// </summary>
 protected override void OnDetach()
 {
     if (RenderCore is IGeometryRenderCore core)
     {
         core.GeometryBuffer = null;
     }
     RemoveAndDispose(ref bufferModelInternal);
     InstanceBuffer.DisposeAndClear();
     BoundManager.DisposeAndClear();
     base.OnDetach();
 }