Update texture coordinates in all draw list shared context FIXME-NEWATLAS FIXME-OPT: Doesn't seem necessary to update for all, only one bound to current context?
| 3919 | // Update texture coordinates in all draw list shared context |
| 3920 | // FIXME-NEWATLAS FIXME-OPT: Doesn't seem necessary to update for all, only one bound to current context? |
| 3921 | void ImFontAtlasUpdateDrawListsSharedData(ImFontAtlas* atlas) |
| 3922 | { |
| 3923 | for (ImDrawListSharedData* shared_data : atlas->DrawListSharedDatas) |
| 3924 | if (shared_data->FontAtlas == atlas) |
| 3925 | { |
| 3926 | shared_data->TexUvWhitePixel = atlas->TexUvWhitePixel; |
| 3927 | shared_data->TexUvLines = atlas->TexUvLines; |
| 3928 | } |
| 3929 | } |
| 3930 | |
| 3931 | // Set current texture. This is mostly called from AddTexture() + to handle a failed resize. |
| 3932 | static void ImFontAtlasBuildSetTexture(ImFontAtlas* atlas, ImTextureData* tex) |
no outgoing calls
no test coverage detected