From c62f0470273a3f4d12e5702398dc4b6e4c6f31fb Mon Sep 17 00:00:00 2001 From: rtk0c Date: Thu, 24 Apr 2025 13:18:36 -0700 Subject: Flip texture rendered I'm not sure if this is the correct thing to do. Need to think through the memory layout of _bitmap, etc. again later --- src/ui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui.cpp') diff --git a/src/ui.cpp b/src/ui.cpp index 43ecb09..fdb9eee 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -15,7 +15,7 @@ void ShowEverything() { gl.upload(reinterpret_cast(sandbox._bitmap.data()), kWidth, kHeight); constexpr float kScale = 4.0f; constexpr ImVec2 kSize(kWidth * kScale, kHeight * kScale); - ImGui::Image(gl.as_imgui(), kSize); + ImGui::Image(gl.as_imgui(), kSize, ImVec2(0, 1), ImVec2(1, 0)); ImGui::End(); ImGui::ShowDemoWindow(); -- cgit v1.2.3-70-g09d2