From 7014243974779395c5b3cd7ee493d0b4fd9873b1 Mon Sep 17 00:00:00 2001 From: Nikola Petrov Date: Thu, 6 Feb 2025 12:09:55 +0100 Subject: [PATCH] remove texture filip --- imgui_raylib/rlImGui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imgui_raylib/rlImGui.cpp b/imgui_raylib/rlImGui.cpp index 1ee36fe..de93f52 100644 --- a/imgui_raylib/rlImGui.cpp +++ b/imgui_raylib/rlImGui.cpp @@ -602,7 +602,7 @@ void rlImGuiImageRenderTextureFit(const RenderTexture *image, bool center) ImGui::SetCursorPosY(ImGui::GetCursorPosY() + (area.y / 2 - sizeY / 2)); } - rlImGuiImageRect(&image->texture, sizeX, sizeY, Rectangle{0, 0, float(image->texture.width), -float(image->texture.height)}); + rlImGuiImageRect(&image->texture, sizeX, sizeY, Rectangle{0, 0, float(image->texture.width), float(image->texture.height)}); } // raw ImGui backend API