diff --git a/src/SceneGraph/RenderList.cpp b/src/SceneGraph/RenderList.cpp index d14ec89c..cdd5bef8 100644 --- a/src/SceneGraph/RenderList.cpp +++ b/src/SceneGraph/RenderList.cpp @@ -218,10 +218,10 @@ namespace hgl uint32_t first_set=0; MaterialParameters *mp; - for(int i=(int)DescriptorSetType::BEGIN_RANGE; - i<(int)DescriptorSetType::PerObject; - i++) + ENUM_CLASS_FOR(DescriptorSetType,int,i) { + if(i==(int)DescriptorSetType::PerObject)continue; + mp=ri->GetMP((DescriptorSetType)i); if(last_mp[i]!=mp)