Skip to content

Commit

Permalink
Examples: DirectX12: Tweaked assertion to more accurately represent w…
Browse files Browse the repository at this point in the history
…hat it wants to say. (#301)
  • Loading branch information
ocornut committed Feb 22, 2018
1 parent a1a36e7 commit 288351a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/directx12_example/imgui_impl_dx12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 288351a

Please sign in to comment.