From cf81e7bcffedf7f390f58787c77a82f9a1c51563 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 13 Mar 2025 23:56:22 +0800 Subject: [PATCH] Fixed a but that compare PrimitiveDataBuffer wrong. --- src/SceneGraph/MaterialRenderList.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SceneGraph/MaterialRenderList.cpp b/src/SceneGraph/MaterialRenderList.cpp index 4aee43b8..30eefce9 100644 --- a/src/SceneGraph/MaterialRenderList.cpp +++ b/src/SceneGraph/MaterialRenderList.cpp @@ -279,7 +279,7 @@ void MaterialRenderList::Stat() { ro=rn->scene_node->GetRenderable(); - if(*last_data_buffer!=*ro->GetDataBuffer()) + if(*last_data_buffer==*ro->GetDataBuffer()) if(*last_render_data==*ro->GetRenderData()) { ++ri->instance_count;