From b0e71f6f189f84c1033443cf8f69e23e44b40ff1 Mon Sep 17 00:00:00 2001 From: Bruno Herbelin Date: Tue, 14 Mar 2023 20:50:19 +0100 Subject: [PATCH] Compilation fix - epx10 is not standard function --- src/ImGuiVisitor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImGuiVisitor.cpp b/src/ImGuiVisitor.cpp index eafe7f6..5d0576b 100644 --- a/src/ImGuiVisitor.cpp +++ b/src/ImGuiVisitor.cpp @@ -280,9 +280,9 @@ void ImGuiVisitor::visit(ImageProcessingShader &n) ImGui::SameLine(0, IMGUI_SAME_LINE); ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN); - float val = log10(n.gamma.w); + float val = log10f(n.gamma.w); if ( ImGui::SliderFloat("##Gamma", &val, -1.f, 1.f, "%.3f", 2.f) ) - n.gamma.w = exp10(val); + n.gamma.w = powf(10.f, val); if (ImGui::IsItemDeactivatedAfterEdit()){ oss << "Gamma " << std::setprecision(2) << val; Action::manager().store(oss.str());