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:
parent
794e0e71f4
commit
8961d45ebf
@ -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); \
|
||||
|
Loading…
Reference in New Issue
Block a user