From 3dbb1c40b716139ab5e27b7e5240a5f37aff1efb Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Wed, 22 Feb 2023 21:59:35 +0800 Subject: [PATCH] updated all descript set in RenderList --- src/SceneGraph/RenderList.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)