Fixed assertion at quit when the debug text was the last texture used.

This commit is contained in:
Sam Lantinga 2024-10-18 14:51:24 -07:00
parent a48fa675be
commit b40ad5428b

View File

@ -5072,6 +5072,7 @@ static void SDL_DiscardAllCommands(SDL_Renderer *renderer)
renderer->render_commands_pool = NULL;
renderer->render_commands_tail = NULL;
renderer->render_commands = NULL;
renderer->vertex_data_used = 0;
while (cmd) {
SDL_RenderCommand *next = cmd->next;