File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -619,7 +619,7 @@ void ImDrawList::PushTextureID(ImTextureID texture_id)
619
619
void ImDrawList::PopTextureID ()
620
620
{
621
621
_TextureIdStack.pop_back ();
622
- _CmdHeader.TextureId = (_TextureIdStack.Size == 0 ) ? ImTextureID () : _TextureIdStack.Data [_TextureIdStack.Size - 1 ];
622
+ _CmdHeader.TextureId = (_TextureIdStack.Size == 0 ) ? (ImTextureID) NULL : _TextureIdStack.Data [_TextureIdStack.Size - 1 ];
623
623
_OnChangedTextureID ();
624
624
}
625
625
@@ -2777,7 +2777,7 @@ static bool ImFontAtlasBuildWithStbTruetype(ImFontAtlas* atlas)
2777
2777
ImFontAtlasBuildInit (atlas);
2778
2778
2779
2779
// Clear atlas
2780
- atlas->TexID = ImTextureID () ;
2780
+ atlas->TexID = (ImTextureID) NULL ;
2781
2781
atlas->TexWidth = atlas->TexHeight = 0 ;
2782
2782
atlas->TexUvScale = ImVec2 (0 .0f , 0 .0f );
2783
2783
atlas->TexUvWhitePixel = ImVec2 (0 .0f , 0 .0f );
You can’t perform that action at this time.
0 commit comments