Fixed a but that compare PrimitiveDataBuffer wrong.

This commit is contained in:
hyzboy 2025-03-13 23:56:22 +08:00
parent 68089e13bc
commit cf81e7bcff

View File

@ -279,7 +279,7 @@ void MaterialRenderList::Stat()
{ {
ro=rn->scene_node->GetRenderable(); ro=rn->scene_node->GetRenderable();
if(*last_data_buffer!=*ro->GetDataBuffer()) if(*last_data_buffer==*ro->GetDataBuffer())
if(*last_render_data==*ro->GetRenderData()) if(*last_render_data==*ro->GetRenderData())
{ {
++ri->instance_count; ++ri->instance_count;