OpenGL GLSL没有支持3.30

时间:2016-06-02 21:10:11

标签: c# opengl glsl opentk

我的着色器有" #version 330核心"在第一行,但它说

0:1(10): error: GLSL 3.30 is not supported. Supported versions are: 1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

运行" glxinfo |后,控制台有输出grep'版本' "

OpenGL core profile version string: 3.3 (Core Profile) Mesa 11.2.2
OpenGL core profile shading language version string: 3.30
OpenGL version string: 3.0 Mesa 11.2.2
OpenGL shading language version string: 1.30
编辑:我知道它说"着色语言1.3"但它也说'#34;核心着色语言3.30"

PS:我正在使用C#和OpenTK

1 个答案:

答案 0 :(得分:1)

解决。我不得不将构造函数更改为

using(GameWindow window = new GameWindow(800, 600, GraphicsMode.Default, "...", GameWindowFlags.Default, DisplayDevice.Default, 3, 3, GraphicsContextFlags.ForwardCompatible))

PS:This helped