/// <summary> /// Disposes the shader to probably clear up memory. /// </summary> public void Dispose() { if (SFMLShader == null) { return; } if (!IsDisposed) { SFMLShader.Dispose(); IsDisposed = true; } }