Fixed bug where creation of custom material instance for Renderables are not updated on the GPU

This commit is contained in:
Kah Wei 2022-11-16 16:38:04 +08:00
parent 3e3a66f261
commit acae84d12c
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ namespace SHADE
{ {
SHGraphicsSystem* gfxSystem = SHSystemManager::GetSystem<SHGraphicsSystem>(); SHGraphicsSystem* gfxSystem = SHSystemManager::GetSystem<SHGraphicsSystem>();
material = gfxSystem->AddMaterialInstanceCopy(sharedMaterial); material = gfxSystem->AddMaterialInstanceCopy(sharedMaterial);
matChanged = true;
} }
return material; return material;