From 8b24d7e32b4fb698a15c47de7344a5352adea3fa Mon Sep 17 00:00:00 2001 From: maverickdgg Date: Sun, 5 Mar 2023 13:58:07 +0800 Subject: [PATCH] re-added the button texture check before setting texture --- SHADE_Engine/src/UI/SHUISystem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SHADE_Engine/src/UI/SHUISystem.cpp b/SHADE_Engine/src/UI/SHUISystem.cpp index cf79ecfb..74dfb62c 100644 --- a/SHADE_Engine/src/UI/SHUISystem.cpp +++ b/SHADE_Engine/src/UI/SHUISystem.cpp @@ -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;