| 701 | ASTextContext g_as_text_context; |
| 702 | |
| 703 | void DisposeTextAtlases() { |
| 704 | for (int i = 0; i < g_as_text_context.atlases.num_atlases; ++i) { |
| 705 | g_as_text_context.atlases.cached[i].atlas.Dispose(); |
| 706 | } |
| 707 | |
| 708 | // Reset the cached atlas counter |
| 709 | g_as_text_context.atlases.num_atlases = 0; |
| 710 | } |
| 711 | |
| 712 | void AttachTextCanvasTextureToASContext(ASContext* ctx) { |
| 713 | g_as_text_context.font_renderer = FontRenderer::Instance(); |