From d9e397269a4a73e89a25dac6663b864f4f2fde70 Mon Sep 17 00:00:00 2001 From: IAmEki Date: Tue, 27 Feb 2024 21:08:50 +0000 Subject: [PATCH] OpenGL texture handle is an unsigned integer rather than a pointer, so should be formatted as one --- Image-Loading-and-Displaying-Examples.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Image-Loading-and-Displaying-Examples.md b/Image-Loading-and-Displaying-Examples.md index 818bc71..55747cc 100644 --- a/Image-Loading-and-Displaying-Examples.md +++ b/Image-Loading-and-Displaying-Examples.md @@ -165,7 +165,7 @@ In the snippet of code above, we added an assert `IM_ASSERT(ret)` to check if th Now that we have an OpenGL texture and its dimensions, we can display it in our main loop: ```cpp ImGui::Begin("OpenGL Texture Text"); -ImGui::Text("pointer = %p", my_image_texture); +ImGui::Text("pointer = %x", my_image_texture); ImGui::Text("size = %d x %d", my_image_width, my_image_height); ImGui::Image((void*)(intptr_t)my_image_texture, ImVec2(my_image_width, my_image_height)); ImGui::End();