您的位置:首页 > 运维架构

ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545

2018-01-23 19:57 453 查看
//—————————————【转自:bai_Dreamer】—————————————-//

ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545

vtkWin32OpenGLRenderWindow (06FFAC20): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkOpenGLRenderWindow.cxx, line 545

vtkWin32OpenGLRenderWindow (06FFAC20): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2.

ERROR: In D:\lib\VTK-7.0.0\Rendering\OpenGL2\vtkShaderProgram.cxx, line 369

vtkShaderProgram (0922F2E0): 1: #version 120

2: #extension GL_EXT_gpu_shader4 : require

3: #define highp

4: #define mediump

5: #define lowp

6:

7: /*=========================================================================

8:

9: Program: Visualization Toolkit

10: Module: vtkPolyData2DFS.glsl

11:

12: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen

13: All rights reserved.

14: See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

15:

16: This software is distributed WITHOUT ANY WARRANTY; without even

17: the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR

18: PURPOSE. See the above copyright notice for more information.

19:

20: =========================================================================*/

21:

22: uniform int PrimitiveIDOffset;

23:

24: // Texture coordinates

25: varying vec2 tcoordVCVSOutput; uniform sampler2D texture1;

26:

27: // Scalar coloring

28: uniform vec4 diffuseColor;

29:

30: // Depth Peeling

31: //VTK::DepthPeeling::Dec

32:

33: // the output of this shader

34: //VTK::Output::Dec

35:

36: // Apple Bug

37: //VTK::PrimID::Dec

38:

39: void main()

40: {

41: // Apple Bug

42: //VTK::PrimID::Impl

43:

44: gl_FragData[0] = diffuseColor;

45: gl_FragData[0] = gl_FragData[0]*texture2D(texture1, tcoordVCVSOutput.st);

46: //VTK::DepthPeeling::Impl

47: }

48:

这是由于VTK只支持英伟达的显卡。

1.如果出现这种问题,首先确保你有独立显卡(英伟达的)。

2.找开显卡设置面板,将全局设置那一栏下的首先图形处理器设为高性能NVDIA处理器。

【参考:】

http://blog.csdn.net/eggsdandan/article/details/75577561
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐