Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


compiling vertex shader codes....

This topic is 5527 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

is there any way to find if there was any syntax error while sending some vertex shader code to glProgramString(). Perhaps the best way to find it out is simply to see if the program displays any geometry or not but that could happen for two reasons.... 1) Logical Error and 2) compile-time error. How do i filter out the "compile-time" errors. Is there any functions ( like glGetProgramError() ) or something ?

Share this post

Link to post
Share on other sites
glGetIntegerv(GL_PROGRAM_ERROR_POSITION_ARB, &errorPos);


Read the extension docs.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!