不支持 OpenGL GLSL 3.30
OpenGL GLSL not suported 3.30
我的着色器在第一行有“#version 330 core”但是它说
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 'version'"
之后控制台有输出
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
编辑:我知道它说 "shading language 1.3" 但它也说 "core shading language 3.30"
PS: 我正在使用 C# 和 OpenTK
已解决。我不得不将构造函数更改为
using(GameWindow window = new GameWindow(800, 600, GraphicsMode.Default, "...", GameWindowFlags.Default, DisplayDevice.Default, 3, 3, GraphicsContextFlags.ForwardCompatible))
PS: This helped
我的着色器在第一行有“#version 330 core”但是它说
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 'version'"
之后控制台有输出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
编辑:我知道它说 "shading language 1.3" 但它也说 "core shading language 3.30"
PS: 我正在使用 C# 和 OpenTK
已解决。我不得不将构造函数更改为
using(GameWindow window = new GameWindow(800, 600, GraphicsMode.Default, "...", GameWindowFlags.Default, DisplayDevice.Default, 3, 3, GraphicsContextFlags.ForwardCompatible))
PS: This helped