Modified Extensions example to request a GL3.0 context.

This commit is contained in:
the_fiddler 2009-03-07 18:33:23 +00:00
parent 4e5d758fa1
commit c2d9b32ff1

View file

@ -57,7 +57,7 @@ namespace Examples.WinForms
Application.Idle -= StartAsync;
// Create a context in order to load all GL methods (GL.LoadAll() is called automatically.)
using (GLControl control = new GLControl(GraphicsMode.Default))
using (GLControl control = new GLControl(GraphicsMode.Default, 3, 0, GraphicsContextFlags.Default))
{
TextBoxVendor.Text = GL.GetString(StringName.Vendor);
TextBoxRenderer.Text = GL.GetString(StringName.Renderer);