video: Document that renderer lifetimes are tied to their associated windows

This commit is contained in:
Frank Praznik
2024-03-27 12:45:51 -04:00
committed by Sam Lantinga
parent 02c63667c7
commit 5abcfad352
2 changed files with 5 additions and 1 deletions

View File

@@ -2110,7 +2110,7 @@ extern DECLSPEC int SDLCALL SDL_SetWindowShape(SDL_Window *window, SDL_Surface *
extern DECLSPEC int SDLCALL SDL_FlashWindow(SDL_Window *window, SDL_FlashOperation operation);
/**
* Destroy a window.
* Destroy a window. If the window has an associated SDL_Renderer, it will be implicitly destroyed as well.
*
* If `window` is NULL, this function will return immediately after setting
* the SDL error message to "Invalid window". See SDL_GetError().