Modified Extensions example to request a GL3.0 context.
This commit is contained in:
parent
4e5d758fa1
commit
c2d9b32ff1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue