diff --git a/src/SceneGraph/MaterialRenderList.cpp b/src/SceneGraph/MaterialRenderList.cpp index cf99ba8d..3c6e2f4c 100644 --- a/src/SceneGraph/MaterialRenderList.cpp +++ b/src/SceneGraph/MaterialRenderList.cpp @@ -34,10 +34,10 @@ int Comparator::compare(const hgl::graph::RenderNode &ob return off; } - //比较材质实例 + //比较顶点输入格式 { - off=ri_one->GetMaterialInstance() - -ri_two->GetMaterialInstance(); + off=ri_one->GetMaterialInstance()->GetVIL() + -ri_two->GetMaterialInstance()->GetVIL(); if(off) return off;