mirror of
https://github.com/ocornut/imgui.git
synced 2024-11-28 17:09:02 +08:00
Examples: DirectX12: Tweaked assertion to more accurately represent what it wants to say. (#301)
This commit is contained in:
parent
a1a36e762e
commit
288351a801
@ -471,7 +471,7 @@ static void ImGui_ImplDX12_CreateFontsTexture()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Store our identifier
|
// Store our identifier
|
||||||
static_assert(sizeof(void*) >= sizeof(g_hFontSrvGpuDescHandle.ptr), "Can't pack descriptor handle into TexID");
|
static_assert(sizeof(ImTextureID) >= sizeof(g_hFontSrvGpuDescHandle.ptr), "Can't pack descriptor handle into TexID");
|
||||||
io.Fonts->TexID = (void *)g_hFontSrvGpuDescHandle.ptr;
|
io.Fonts->TexID = (void *)g_hFontSrvGpuDescHandle.ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user