From 04ae3728f8a63bac3416c831fb5c457de0efb5fe Mon Sep 17 00:00:00 2001 From: epezent Date: Wed, 7 Apr 2021 20:02:35 -0700 Subject: [PATCH] fix smaplecolormapu32 --- implot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index d9a76a6..96964a6 100644 --- a/implot.cpp +++ b/implot.cpp @@ -3404,7 +3404,7 @@ ImU32 SampleColormapU32(float t, ImPlotColormap cmap) { ImPlotContext& gp = *GImPlot; cmap = cmap == IMPLOT_AUTO ? gp.Style.Colormap : cmap; IM_ASSERT_USER_ERROR(cmap >= 0 && cmap < gp.ColormapData.Count, "Invalid colormap index!"); - return gp.ColormapData.LerpTable(gp.Style.Colormap,t); + return gp.ColormapData.LerpTable(cmap, t); } ImVec4 SampleColormap(float t, ImPlotColormap cmap) {