Opengl Game Project Compiling: Error: 0:1:": Version number not supported by GL2

Started by
0 comments, last by Danny02 13 years, 8 months ago
I tried to compile the source code in a programming book called "Beginning Opengl Game Programming".

However, I get the following error.
Error: 0:1:": Version number not supported by GL2Error: 0:6:'in':syntax error parse error

I had deal with it for a number of days but I still could not solve the problem.
I tried to change the #version 120 to #version 110 in the files located in the directory "data/shaders/glsl1.20".

Unforunately, I still got errors.
I hope someone can figure out the solution for me. I really need a help!

You may download the whole project in the following link and try to compile.
You may also need freetype.lib and GLee.lib and I will also provide them.

http://www.sendspace.com/file/o0gkyl


Thanks a lot
Advertisement
u could post u'r shader code first so we can see were the problem is.

But I think it's cause u use "in" for varying or attributes which is wrong for GLSL 1.2

This topic is closed to new replies.

Advertisement