Effect.CommitChanges Method
Propagates the state change that occurs inside of an active pass to the device before rendering.
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public void CommitChanges ()
Remarks
If the application changes any effect state using the Effect class members that modify state inside of an Begin/End matching pair, the application must call CommitChanges before any of the various DrawPrimitives methods are called to propagate state changes to the device before rendering. If no state changes occur within an Begin/End matching pair, it is not necessary to call CommitChanges.
See Also
Reference
Effect Class
Effect Members
Microsoft.Xna.Framework.Graphics Namespace
Platforms
Xbox 360, Windows XP SP2, Windows Vista