From: Johan S. <jo...@us...> - 2007-03-13 13:58:42
|
Update of /cvsroot/shallows/shallows/src In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv724/src Modified Files: GLProgram.cpp Log Message: Fix exception error message. Index: GLProgram.cpp =================================================================== RCS file: /cvsroot/shallows/shallows/src/GLProgram.cpp,v retrieving revision 1.35 retrieving revision 1.36 diff -C2 -d -r1.35 -r1.36 *** GLProgram.cpp 20 Feb 2007 10:01:34 -0000 1.35 --- GLProgram.cpp 13 Mar 2007 13:58:33 -0000 1.36 *************** *** 529,535 **** const GLint location = glGetAttribLocation( programHandle_, name ); if ( location == -1 ) { ! std::string s = "Varying variable "; s += name; ! s += " was not found or illegal.\n(Hint starting with gl_ is not allowed.)"; throw std::invalid_argument( s ); } --- 529,535 ---- const GLint location = glGetAttribLocation( programHandle_, name ); if ( location == -1 ) { ! std::string s = "Attribute variable "; s += name; ! s += " was not found or illegal.\n(It might have been optimized away.)"; throw std::invalid_argument( s ); } |