From Wang Rui, "This patch fixes a problem of the osg::Program serializers that can't

save/load GeometryInputType data correctly. The bug is initially found
by John Kelso."
This commit is contained in:
Robert Osfield 2012-08-29 16:48:27 +00:00
parent 794e0e71f4
commit 8961d45ebf

View File

@ -32,7 +32,7 @@ PROGRAM_LIST_FUNC( FragDataBinding, FragDataBindingList, BindFragDataLocation )
#define PROGRAM_PARAMETER_FUNC( PROP, NAME ) \
static bool check##PROP(const osg::Program& attr) \
{ return attr.getParameter(NAME)!=GL_NONE; } \
{ return true; } \
static bool read##PROP(osgDB::InputStream& is, osg::Program& attr) { \
int value; is >> is.PROPERTY(#NAME) >> value; \
attr.setParameter(NAME, value); \