Browse Source

imgui_freetype: fix nullptr to ImTextureID cast (#7192)

pull/7197/head
Pascal Thomet 10 months ago
committed by GitHub
parent
commit
4758f74676
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      misc/freetype/imgui_freetype.cpp

2
misc/freetype/imgui_freetype.cpp

@ -437,7 +437,7 @@ bool ImFontAtlasBuildWithFreeTypeEx(FT_Library ft_library, ImFontAtlas* atlas, u
ImFontAtlasBuildInit(atlas);
// Clear atlas
atlas->TexID = (ImTextureID)nullptr;
atlas->TexID = 0;
atlas->TexWidth = atlas->TexHeight = 0;
atlas->TexUvScale = ImVec2(0.0f, 0.0f);
atlas->TexUvWhitePixel = ImVec2(0.0f, 0.0f);

Loading…
Cancel
Save