Skip to content

Commit

Permalink
imgui_impl_dx12: Cast to ImTextureID instead of void* to enable redef…
Browse files Browse the repository at this point in the history
…inition of ImTextureID (#2015, #301)
  • Loading branch information
cranflavin authored and ocornut committed Aug 9, 2018
1 parent d579310 commit 9c08050
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/imgui_impl_dx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ static void ImGui_ImplDX12_CreateFontsTexture()

// Store our identifier
static_assert(sizeof(ImTextureID) >= sizeof(g_hFontSrvGpuDescHandle.ptr), "Can't pack descriptor handle into TexID, 32-bit not supported yet.");
io.Fonts->TexID = (void *)g_hFontSrvGpuDescHandle.ptr;
io.Fonts->TexID = (ImTextureID)g_hFontSrvGpuDescHandle.ptr;
}

bool ImGui_ImplDX12_CreateDeviceObjects()
Expand Down

0 comments on commit 9c08050

Please sign in to comment.