From 3965b4e66e77a64797fb8e5652cc17d0d78f85b5 Mon Sep 17 00:00:00 2001 From: Julien Valentin Date: Tue, 1 Aug 2017 02:18:15 +0200 Subject: [PATCH] fix a bug in MDI serializer --- src/osgWrappers/serializers/osg/PrimitiveSetIndirect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgWrappers/serializers/osg/PrimitiveSetIndirect.cpp b/src/osgWrappers/serializers/osg/PrimitiveSetIndirect.cpp index 1d732cdb8..867f57162 100644 --- a/src/osgWrappers/serializers/osg/PrimitiveSetIndirect.cpp +++ b/src/osgWrappers/serializers/osg/PrimitiveSetIndirect.cpp @@ -168,13 +168,13 @@ REGISTER_OBJECT_WRAPPER( DrawElementsIndirect, } #define INDIRECTDRAW_ELEMENTS_WRAPPER( DRAWELEMENTS, ELEMENTTYPE ) \ namespace Wrapper##DRAWELEMENTS { \ - REGISTER_OBJECT_WRAPPER( DRAWELEMENTS, new osg::DRAWELEMENTS, osg::DRAWELEMENTS, "osg::Object osg::BufferData osg::PrimitiveSet osg::IndirectDrawElements osg::"#DRAWELEMENTS) \ + REGISTER_OBJECT_WRAPPER( DRAWELEMENTS, new osg::DRAWELEMENTS, osg::DRAWELEMENTS, "osg::Object osg::BufferData osg::PrimitiveSet osg::DrawElementsIndirect osg::"#DRAWELEMENTS) \ { \ ADD_ISAVECTOR_SERIALIZER( vector, osgDB::BaseSerializer::ELEMENTTYPE, 4 ); \ } \ }\ namespace WrapperMulti##DRAWELEMENTS { \ - REGISTER_OBJECT_WRAPPER( Multi##DRAWELEMENTS, new osg::Multi##DRAWELEMENTS, osg::Multi##DRAWELEMENTS, "osg::Object osg::BufferData osg::PrimitiveSet osg::IndirectDrawElements osg::"#DRAWELEMENTS" osg::Multi"#DRAWELEMENTS) \ + REGISTER_OBJECT_WRAPPER( Multi##DRAWELEMENTS, new osg::Multi##DRAWELEMENTS, osg::Multi##DRAWELEMENTS, "osg::Object osg::BufferData osg::PrimitiveSet osg::DrawElementsIndirect osg::"#DRAWELEMENTS" osg::Multi"#DRAWELEMENTS) \ { \ ADD_UINT_SERIALIZER( NumCommandsToDraw, 0);\ } \