mirror of
https://github.com/ocornut/imgui.git
synced 2025-04-08 22:59:16 +00:00
Fix MSVC's C4312 warning about casting user texture type to void* in ImageButton (#2080)
This commit is contained in:
parent
9cc63ba279
commit
ec04e8bb05
1 changed files with 1 additions and 1 deletions
|
@ -838,7 +838,7 @@ bool ImGui::ImageButton(ImTextureID user_texture_id, const ImVec2& size, const I
|
|||
|
||||
// Default to using texture ID as ID. User can still push string/integer prefixes.
|
||||
// We could hash the size/uv to create a unique ID but that would prevent the user from animating UV.
|
||||
PushID((void*)user_texture_id);
|
||||
PushID((void*)(intptr_t)user_texture_id);
|
||||
const ImGuiID id = window->GetID("#image");
|
||||
PopID();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue