Skip to content

Commit

Permalink
Added code to forget destroyed objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aermoss committed Sep 7, 2024
1 parent 89bccc3 commit 08528bb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion example.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def main(argv: list[str]) -> int:
if textTexture is not None:
sdl3.SDL_DestroySurface(textSurface)
sdl3.SDL_DestroyTexture(textTexture)
textSurface, textTexture = None, None

textSurface = sdl3.TTF_RenderText_Solid(font, f"FPS: {framesPerSecond}".encode(), sdl3.SDL_Color(255, 255, 255, 255))
textTexture = sdl3.SDL_CreateTextureFromSurface(renderer, textSurface)
Expand Down

0 comments on commit 08528bb

Please sign in to comment.