From 2816b0cbd92b2b48cd4eefe3133e7008d2c38f56 Mon Sep 17 00:00:00 2001 From: marcizhu Date: Mon, 21 Jun 2021 10:26:46 +0200 Subject: [PATCH] Fixupside-down heatmaps --- backends/implot_opengl3.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/implot_opengl3.cpp b/backends/implot_opengl3.cpp index 59e69ad..ad7b3f9 100644 --- a/backends/implot_opengl3.cpp +++ b/backends/implot_opengl3.cpp @@ -279,7 +279,7 @@ void OpenGL3_RenderHeatmap(int plotID, ImDrawList& DrawList, const ImVec2& bound DrawList.AddCallback(RenderCallback, (void*)(intptr_t)plotID); DrawList.PrimReserve(6, 4); - DrawList.PrimRectUV(bounds_min, bounds_max, ImVec2(0.0f, 0.0f), ImVec2(1.0f, 1.0f), 0); + DrawList.PrimRectUV(bounds_min, bounds_max, ImVec2(0.0f, 1.0f), ImVec2(1.0f, 0.0f), 0); DrawList.AddCallback(UnbindTexture, nullptr); DrawList.AddCallback(ImDrawCallback_ResetRenderState, nullptr); }