You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui.h
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3491,8 +3491,10 @@ struct ImTextureData
3491
3491
ImTextureID GetTexID() const { return TexID; }
3492
3492
3493
3493
// Called by Renderer backend
3494
-
voidSetTexID(ImTextureID tex_id) { TexID = tex_id; } // Call after creating or destroying the texture. Never modify TexID directly!
3495
-
voidSetStatus(ImTextureStatus status) { Status = status; } // Call after honoring a request. Never modify Status directly!
3494
+
// - Call SetTexID() and SetStatus() after honoring texture requests. Never modify TexID and Status directly!
3495
+
// - A backend may decide to destroy a texture that we did not request to destroy, which is fine (e.g. freeing resources), but we immediately set the texture back in _WantCreate mode.
0 commit comments