mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-21 07:09:59 +01:00
Compilation fix - epx10 is not standard function
This commit is contained in:
@@ -280,9 +280,9 @@ void ImGuiVisitor::visit(ImageProcessingShader &n)
|
|||||||
|
|
||||||
ImGui::SameLine(0, IMGUI_SAME_LINE);
|
ImGui::SameLine(0, IMGUI_SAME_LINE);
|
||||||
ImGui::SetNextItemWidth(IMGUI_RIGHT_ALIGN);
|
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) )
|
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()){
|
if (ImGui::IsItemDeactivatedAfterEdit()){
|
||||||
oss << "Gamma " << std::setprecision(2) << val;
|
oss << "Gamma " << std::setprecision(2) << val;
|
||||||
Action::manager().store(oss.str());
|
Action::manager().store(oss.str());
|
||||||
|
|||||||
Reference in New Issue
Block a user