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();