mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 12:21:06 +00:00
Modified Extensions example to request a GL3.0 context.
This commit is contained in:
parent
fda108701c
commit
f4b6f1d0f2
|
@ -57,7 +57,7 @@ namespace Examples.WinForms
|
||||||
Application.Idle -= StartAsync;
|
Application.Idle -= StartAsync;
|
||||||
|
|
||||||
// Create a context in order to load all GL methods (GL.LoadAll() is called automatically.)
|
// 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);
|
TextBoxVendor.Text = GL.GetString(StringName.Vendor);
|
||||||
TextBoxRenderer.Text = GL.GetString(StringName.Renderer);
|
TextBoxRenderer.Text = GL.GetString(StringName.Renderer);
|
||||||
|
|
Loading…
Reference in a new issue