Advertisement Jump to content
Sign in to follow this  

OpenGL Can't get my GLSL shader to work in Windows

This topic is 838 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm a beginner when it comes to shaders.    I'm stuck right at the start, because I can't get the basic shaders to work at all.
Some specs:
I have Windows 7, a four core desktop computer, with 4 gigs of ram.     My graphics card is a Raedon ASUS EAH6670, which supports OpenGL 4.1.    When I check to see what version of OpenGL I have, I get 4.2.
I'm trying the code from a youtube tutorial created by James King. Here is where he tells you where you can download his code.
I went to github and downloaded his code here
I compiled it and ran it, and right away I get the following errors, which I have not been able to solve:
"Vertex shader failed to compile with the following errors:
ERROR: 0:1 error(#106) Version number not supported by GL2
ERROR: error(#273) 1 compilation errors.  No code generated"
  I'm confused by this, because it seems to be saying I have OpenGL version 2, when I'm told elsewhere, both by the glGetString(GL_VERSION) function and by a stand alone application, that I have version 4.2.
  Does anyone here have an idea what I'm doing wrong?   
   Many thanks for any help!

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!