Skip to content

Commit 08528bb

Browse files
committed
Added code to forget destroyed objects.
1 parent 89bccc3 commit 08528bb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

example.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ def main(argv: list[str]) -> int:
114114
if textTexture is not None:
115115
sdl3.SDL_DestroySurface(textSurface)
116116
sdl3.SDL_DestroyTexture(textTexture)
117-
textSurface, textTexture = None, None
118117

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

0 commit comments

Comments
 (0)