diff --git a/src/Nazara/Widgets/ImageButtonWidget.cpp b/src/Nazara/Widgets/ImageButtonWidget.cpp index 28773fef7..cc98124c6 100644 --- a/src/Nazara/Widgets/ImageButtonWidget.cpp +++ b/src/Nazara/Widgets/ImageButtonWidget.cpp @@ -83,10 +83,10 @@ namespace Nz if (const auto& material = m_material->FindPass("ForwardPass")) { BasicMaterial mat(*material); - if (mat.HasDiffuseMap()) + if (mat.HasBaseColorMap()) { // Material should always have textures but we're better safe than sorry - if (const auto& texture = mat.GetDiffuseMap()) + if (const auto& texture = mat.GetBaseColorMap()) { Vector2f textureSize = Vector2f(Vector2ui(texture->GetSize())); textureSize.x *= textureCoords.width;