Added missing base.On* calls.

This commit is contained in:
the_fiddler 2009-11-04 17:01:44 +00:00
parent 9f4eca541f
commit 2073a8805c

View file

@ -76,6 +76,8 @@ namespace Examples.Tests
protected override void OnLoad(EventArgs e) protected override void OnLoad(EventArgs e)
{ {
base.OnLoad(e);
GL.ClearColor(Color.MidnightBlue); GL.ClearColor(Color.MidnightBlue);
GL.Enable(EnableCap.Texture2D); GL.Enable(EnableCap.Texture2D);
@ -92,6 +94,8 @@ namespace Examples.Tests
protected override void OnResize(EventArgs e) protected override void OnResize(EventArgs e)
{ {
base.OnResize(e);
GL.Viewport(0, 0, Width, Height); GL.Viewport(0, 0, Width, Height);
Matrix4 ortho_projection = Matrix4.CreateOrthographicOffCenter(0, Width, Height, 0, -1, 1); Matrix4 ortho_projection = Matrix4.CreateOrthographicOffCenter(0, Width, Height, 0, -1, 1);
@ -101,6 +105,8 @@ namespace Examples.Tests
protected override void OnRenderFrame(FrameEventArgs e) protected override void OnRenderFrame(FrameEventArgs e)
{ {
base.OnRenderFrame(e);
GL.Clear(ClearBufferMask.ColorBufferBit); GL.Clear(ClearBufferMask.ColorBufferBit);
GL.Begin(BeginMode.Quads); GL.Begin(BeginMode.Quads);