From 288351a8019cea3dcbbc8d42d55768b5e80d39bf Mon Sep 17 00:00:00 2001 From: omar Date: Fri, 23 Feb 2018 00:00:43 +0100 Subject: [PATCH] Examples: DirectX12: Tweaked assertion to more accurately represent what it wants to say. (#301) --- examples/directx12_example/imgui_impl_dx12.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/directx12_example/imgui_impl_dx12.cpp b/examples/directx12_example/imgui_impl_dx12.cpp index 2da3624d..beb48b9c 100644 --- a/examples/directx12_example/imgui_impl_dx12.cpp +++ b/examples/directx12_example/imgui_impl_dx12.cpp @@ -471,7 +471,7 @@ static void ImGui_ImplDX12_CreateFontsTexture() } // 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; }