Add a low FPS callback to aid in debugging, and fix a huge memory leak in akgl_text_rendertextat

This commit is contained in:
2026-05-15 11:07:31 -04:00
parent 73b1a4cab0
commit f695a035c8
4 changed files with 14 additions and 1 deletions

View File

@@ -56,5 +56,6 @@ akerr_ErrorContext AKERR_NOIGNORE *akgl_text_rendertextat(TTF_Font *font, char *
SDL_GetTextureSize(texture, &dest.w, &dest.h);
FAIL_ZERO_RETURN(errctx, SDL_RenderTexture(renderer, texture, NULL, &dest), AKERR_NULLPOINTER, "%s", SDL_GetError());
SDL_DestroyTexture(texture);
SDL_DestroySurface(textsurf);
SUCCEED_RETURN(errctx);
}