mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 09:55:32 +00:00
Fixed the HelloGL3 example for the Mac.
Upped versions to make it work on Mac; think this should not be a problem for most other machines.
This commit is contained in:
parent
374ce26186
commit
ddcc8df5ec
|
@ -16,7 +16,7 @@ namespace Examples.Tutorial
|
||||||
public class HelloGL3 : GameWindow
|
public class HelloGL3 : GameWindow
|
||||||
{
|
{
|
||||||
string vertexShaderSource = @"
|
string vertexShaderSource = @"
|
||||||
#version 130
|
#version 140
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ void main(void)
|
||||||
}";
|
}";
|
||||||
|
|
||||||
string fragmentShaderSource = @"
|
string fragmentShaderSource = @"
|
||||||
#version 130
|
#version 140
|
||||||
|
|
||||||
precision highp float;
|
precision highp float;
|
||||||
|
|
||||||
|
@ -94,7 +94,7 @@ void main(void)
|
||||||
public HelloGL3()
|
public HelloGL3()
|
||||||
: base(640, 480,
|
: base(640, 480,
|
||||||
new GraphicsMode(), "OpenGL 3 Example", 0,
|
new GraphicsMode(), "OpenGL 3 Example", 0,
|
||||||
DisplayDevice.Default, 3, 0,
|
DisplayDevice.Default, 3, 2,
|
||||||
GraphicsContextFlags.ForwardCompatible | GraphicsContextFlags.Debug)
|
GraphicsContextFlags.ForwardCompatible | GraphicsContextFlags.Debug)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue