From 41523f8ca873dee1c7cff97444edf9ac5c002ce8 Mon Sep 17 00:00:00 2001 From: SirLynix Date: Mon, 1 Aug 2022 19:49:27 +0200 Subject: [PATCH] Fix compilation --- src/Nazara/Widgets/ImageButtonWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;