ubuntu16.04遇到error: GLSL 3.30 is not supported.错误,解决办法

最近研究osgEarth,执行./osgearth_viewer …/…/tests/openstreetmap.earth例子时,出现以下错误:

error: GLSL 3.30 is not supported. Supported versions are: 
1.10, 1.20, 1.30, 1.00 ES, and 3.00 ES

解决办法:使用以下命令执行

MESA_GL_VERSION_OVERRIDE=3.3 ./osgearth_viewer 
../../tests/openstreetmap.earth

猜你喜欢

转载自blog.csdn.net/xwb_12340/article/details/107766178