re-added the button texture check before setting texture

This commit is contained in:
maverickdgg 2023-03-05 13:58:07 +08:00
parent 76e794a543
commit 8b24d7e32b
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ namespace SHADE
//SHLOG_INFO("SETTING HOVERED TEXTURE")
}
}
if (textureID != 0)
if (textureID != 0 && comp.currentTexture != textureID)
{
auto material = renderable->GetModifiableMaterial();
comp.currentTexture = textureID;