Commit 8fb1b50a9eed9be7254a1200e5f4ab5f147dc2e8

SDL Wiki Bot 2022-08-20T17:50:04

Sync SDL wiki -> header

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/SDL_render.h b/include/SDL_render.h
index 30ef3d6..71578ec 100644
--- a/include/SDL_render.h
+++ b/include/SDL_render.h
@@ -1765,6 +1765,9 @@ extern DECLSPEC void SDLCALL SDL_DestroyTexture(SDL_Texture * texture);
 /**
  * Destroy the rendering context for a window and free associated textures.
  *
+ * If `window` is NULL, this function will return immediately after setting
+ * the SDL error message to "Invalid window". See SDL_GetError().
+ *
  * \param renderer the rendering context
  *
  * \since This function is available since SDL 2.0.0.