OpenGL Shader error 1282

前端 未结 2 1310
野趣味
野趣味 2021-01-01 16:43

I am trying to add lighting to my current scene of a simple cube. After setting up my uniforms I get a 1282 error from glGetError() for this piece of code

GL         


        
2条回答
  •  我在风中等你
    2021-01-01 17:22

    Generally this error number occurs when you are using a different programID from the programID generated by openGL at the time of creating the shader. It means that you are using a different programID at the time of binding vertexShader or fragmentShader or whatever other shader you are using.

提交回复
热议问题