public static void ResetState() { last = null; stateCache.Viewport = null; // No meaningfull GL.Viewport() call to make; // Will be set to something anyway when something is drawn. }
public override void Execute() { if (last == this) { return; } if (stateCache.Viewport != Viewport) { GL.Viewport( Viewport.X, Viewport.Y, Viewport.Width, Viewport.Height ); stateCache.Viewport = Viewport; } last = this; }