public bool needsUpdate(DisplayStyle newDisplayStyle) { if (newDisplayStyle != DisplayStyle) { return(true); } if (PrimitiveCount > 0) { if (VertexBuffer == null || !VertexBuffer.IsValid() || IndexBuffer == null || !IndexBuffer.IsValid() || VertexFormat == null || !VertexFormat.IsValid() || EffectInstance == null || !EffectInstance.IsValid()) { return(true); } } return(false); }