Permalink
Browse files

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.
  • Loading branch information...
1 parent 374ce26 commit ddcc8df5ec26e5df1dae8662d5a7f7386e4e191a @Ollhax Ollhax committed with thefiddler Apr 22, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 Source/Examples/OpenGL/3.x/HelloGL3.cs
@@ -16,7 +16,7 @@ namespace Examples.Tutorial
public class HelloGL3 : GameWindow
{
string vertexShaderSource = @"
-#version 130
+#version 140
precision highp float;
@@ -37,7 +37,7 @@ void main(void)
}";
string fragmentShaderSource = @"
-#version 130
+#version 140
precision highp float;
@@ -94,7 +94,7 @@ void main(void)
public HelloGL3()
: base(640, 480,
new GraphicsMode(), "OpenGL 3 Example", 0,
- DisplayDevice.Default, 3, 0,
+ DisplayDevice.Default, 3, 2,
GraphicsContextFlags.ForwardCompatible | GraphicsContextFlags.Debug)
{ }

0 comments on commit ddcc8df

Please sign in to comment.