diff --git a/implot3d_items.cpp b/implot3d_items.cpp index 7367822..373e909 100644 --- a/implot3d_items.cpp +++ b/implot3d_items.cpp @@ -752,8 +752,8 @@ template struct RendererQuadImage : RendererBase { template struct RendererSurfaceFill : RendererBase { RendererSurfaceFill(const _Getter& getter, int x_count, int y_count, ImU32 col, double scale_min, double scale_max) - : RendererBase((x_count - 1) * (y_count - 1), 6, 4), Getter(getter), XCount(x_count), YCount(y_count), Col(col), ScaleMin(scale_min), - ScaleMax(scale_max) {} + : RendererBase((x_count - 1) * (y_count - 1), 6, 4), Getter(getter), Min(0.), Max(0.), XCount(x_count), YCount(y_count), Col(col), + ScaleMin(scale_min), ScaleMax(scale_max) {} void Init(ImDrawList3D& draw_list_3d) const { UV = draw_list_3d._SharedData->TexUvWhitePixel;