Changeset 9989
- Timestamp:
- 04/08/09 14:32:52 (4 years ago)
- Location:
- OpenSceneGraph/trunk/src/osg
- Files:
-
- 2 modified
-
Program.cpp (modified) (1 diff)
-
StateSet.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/Program.cpp
r8296 r9989 106 106 osg::StateAttribute(rhs, copyop) 107 107 { 108 osg::notify(osg::FATAL) << "how got here?" << std::endl; 108 for( unsigned int shaderIndex=0; shaderIndex < rhs.getNumShaders(); ++shaderIndex ) 109 { 110 addShader( new osg::Shader( *rhs.getShader( shaderIndex ), copyop ) ); 111 } 112 113 const osg::Program::AttribBindingList &abl = rhs.getAttribBindingList(); 114 for( osg::Program::AttribBindingList::const_iterator attribute = abl.begin(); attribute != abl.end(); ++attribute ) 115 { 116 addBindAttribLocation( attribute->first, attribute->second ); 117 } 118 119 const osg::Program::FragDataBindingList &fdl = rhs.getFragDataBindingList(); 120 for( osg::Program::FragDataBindingList::const_iterator fragdata = fdl.begin(); fragdata != fdl.end(); ++fragdata ) 121 { 122 addBindFragDataLocation( fragdata->first, fragdata->second ); 123 } 124 109 125 _geometryVerticesOut = rhs._geometryVerticesOut; 110 126 _geometryInputType = rhs._geometryInputType; -
OpenSceneGraph/trunk/src/osg/StateSet.cpp
r9354 r9989 426 426 if (lhs_uniform_itr->first<rhs_uniform_itr->first) return -1; 427 427 else if (rhs_uniform_itr->first<lhs_uniform_itr->first) return 1; 428 if (lhs_uniform_itr->second<rhs_uniform_itr->second) return -1; 429 else if (rhs_uniform_itr->second<lhs_uniform_itr->second) return 1; 428 if (*lhs_uniform_itr->second.first<*rhs_uniform_itr->second.first) return -1; 429 else if (*rhs_uniform_itr->second.first<*lhs_uniform_itr->second.first) return 1; 430 if (lhs_uniform_itr->second.second<rhs_uniform_itr->second.second) return -1; 431 else if (rhs_uniform_itr->second.second<lhs_uniform_itr->second.second) return 1; 430 432 ++lhs_uniform_itr; 431 433 ++rhs_uniform_itr;
