Update miniwin/src/d3drm/d3drmmesh.cpp

This commit is contained in:
Anders Jenbo 2025-06-12 18:08:35 +02:00 committed by GitHub
parent d31ac092ab
commit b66b72978f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,9 +25,6 @@ HRESULT Direct3DRMMeshImpl::Clone(int flags, GUID iid, void** object)
auto* clone = new Direct3DRMMeshImpl(*this); auto* clone = new Direct3DRMMeshImpl(*this);
// We should not call the other meshes callbacks
clone->m_callbacks.clear();
for (auto& group : clone->m_groups) { for (auto& group : clone->m_groups) {
// Reusing the same texture and material on the new mesh instead of cloning them might not be correct // Reusing the same texture and material on the new mesh instead of cloning them might not be correct
if (group.texture) { if (group.texture) {