mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-24 16:05:29 +00:00
Manually check OpenGL version.
This commit is contained in:
parent
5e80a061b8
commit
7f7662cfb8
|
@ -50,7 +50,10 @@ namespace Examples.Tutorial
|
||||||
{
|
{
|
||||||
base.OnLoad(e);
|
base.OnLoad(e);
|
||||||
|
|
||||||
if (!GL.SupportsExtension("VERSION_1_5"))
|
string version = GL.GetString(StringName.Version);
|
||||||
|
int major = (int)version[0];
|
||||||
|
int minor = (int)version[2];
|
||||||
|
if (major <= 1 && minor < 5)
|
||||||
{
|
{
|
||||||
System.Windows.Forms.MessageBox.Show("You need at least OpenGL 1.5 to run this example. Aborting.", "VBOs not supported",
|
System.Windows.Forms.MessageBox.Show("You need at least OpenGL 1.5 to run this example. Aborting.", "VBOs not supported",
|
||||||
System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
|
System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation);
|
||||||
|
|
Loading…
Reference in a new issue