Skip to content

Commit

Permalink
imgui_freetype: fix nullptr to ImTextureID cast (#7192)
Browse files Browse the repository at this point in the history
  • Loading branch information
pthom authored Jan 3, 2024
1 parent 6f10cef commit 4758f74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion misc/freetype/imgui_freetype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4758f74

Please sign in to comment.