commit | 4758f746761383d3c954532d71c713b483e0571d | [log] [tgz] |
---|---|---|
author | Pascal Thomet <pthomet@gmail.com> | Wed Jan 03 22:54:36 2024 +0100 |
committer | GitHub <noreply@github.com> | Wed Jan 03 22:54:36 2024 +0100 |
tree | 08578b38741b209ad651c4e75b5f1d25a599a0b5 | |
parent | 6f10cef2a1fc15c45ed61a8a427ccd7f45fb8bf0 [diff] |
imgui_freetype: fix nullptr to ImTextureID cast (#7192)
diff --git a/misc/freetype/imgui_freetype.cpp b/misc/freetype/imgui_freetype.cpp index dcef17f..a78bd5e 100644 --- a/misc/freetype/imgui_freetype.cpp +++ b/misc/freetype/imgui_freetype.cpp
@@ -437,7 +437,7 @@ 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);