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:
Olle Håkansson 2014-04-22 20:01:22 +02:00 committed by thefiddler
parent 374ce26186
commit ddcc8df5ec

View file

@ -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)
{ } { }