OpenGL Shader Version Compile Error

前端 未结 1 1203
执笔经年
执笔经年 2021-01-19 05:36

I have a problem when compiling a simple vertex shader in OpenGL, I get the following error messages:

  • error(#106) Version number not supported by GL2
相关标签:
1条回答
  • 2021-01-19 05:53
    #version 330 core
    

    This says that your shader uses GLSL version 3.30.

    This:

    Version: 3.2.9756 Compatibility Profile Context

    Means that your OpenGL version is 3.2. The GLSL version that corresponds with OpenGL 3.2 is 1.50. Which is less than 3.30. Hence the lack of compilation.

    Update your drivers; those are extremely old. Your card should be able to support GL 4.2.

    0 讨论(0)
提交回复
热议问题