OpenGL Shader Compilation Errors: unexpected $undefined at token “

前端 未结 4 1053
萌比男神i
萌比男神i 2020-12-30 07:03

I saw this question and it really shedded some light. Despite this, I can\'t seem to figure out how I\'m \"improperly\" loading my shader, because this has executed

4条回答
  •  死守一世寂寞
    2020-12-30 07:33

    I got this error because I cut, and paste some shader code from a website. I assume the difference in LF/CR was causing the problem. Removing the pasted text with the same code manually typed in worked.

提交回复
热议问题