1
0
Fork 0
mirror of https://github.com/gwm17/implot.git synced 2025-02-07 14:48:51 -05:00

Fixupside-down heatmaps

This commit is contained in:
marcizhu 2021-06-21 10:26:46 +02:00
parent 7b840d1a44
commit 2816b0cbd9
No known key found for this signature in database
GPG Key ID: 2D8FA5B173E88095

View File

@ -279,7 +279,7 @@ void OpenGL3_RenderHeatmap(int plotID, ImDrawList& DrawList, const ImVec2& bound
DrawList.AddCallback(RenderCallback, (void*)(intptr_t)plotID); DrawList.AddCallback(RenderCallback, (void*)(intptr_t)plotID);
DrawList.PrimReserve(6, 4); 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(UnbindTexture, nullptr);
DrawList.AddCallback(ImDrawCallback_ResetRenderState, nullptr); DrawList.AddCallback(ImDrawCallback_ResetRenderState, nullptr);
} }