Changeset 769 for trunk/src/opengl/qglshaderprogram.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/src/opengl/qglshaderprogram.cpp
r651 r769 970 970 is linked will be assigned locations automatically. 971 971 972 When this function is called after the program has been linked, 973 the program will need to be relinked for the change to take effect. 974 972 975 \sa attributeLocation() 973 976 */ … … 975 978 { 976 979 Q_D(QGLShaderProgram); 977 if (!d->linked) { 978 glBindAttribLocation(d->programGuard.id(), location, name); 979 } else { 980 qWarning() << "QGLShaderProgram::bindAttributeLocation(" << name 981 << "): cannot bind after shader program is linked"; 982 } 980 if (!init()) 981 return; 982 glBindAttribLocation(d->programGuard.id(), location, name); 983 d->linked = false; // Program needs to be relinked. 983 984 } 984 985 … … 991 992 is linked will be assigned locations automatically. 992 993 994 When this function is called after the program has been linked, 995 the program will need to be relinked for the change to take effect. 996 993 997 \sa attributeLocation() 994 998 */ … … 1005 1009 Any attributes that have not been explicitly bound when the program 1006 1010 is linked will be assigned locations automatically. 1011 1012 When this function is called after the program has been linked, 1013 the program will need to be relinked for the change to take effect. 1007 1014 1008 1015 \sa attributeLocation()
Note:
See TracChangeset
for help on using the changeset viewer.