protected void DisposeVertexBuffer() { if ( vertexBuffer != null ) { vertexBuffer.Dispose(); vertexBuffer = null; } }