Browse Source

Sync SDL3 wiki -> header

[ci skip]
SDL Wiki Bot 3 months ago
parent
commit
4d8f5758cf
1 changed files with 5 additions and 0 deletions
  1. 5 0
      include/SDL3/SDL_gpu.h

+ 5 - 0
include/SDL3/SDL_gpu.h

@@ -3636,6 +3636,11 @@ extern SDL_DECLSPEC bool SDLCALL SDL_WaitForGPUSwapchain(
  * buffer used to acquire it. It is an error to call
  * SDL_CancelGPUCommandBuffer() after a swapchain texture is acquired.
  *
+ * This function can fill the swapchain texture handle with NULL in certain
+ * cases, for example if the window is minimized. This is not an error. You
+ * should always make sure to check whether the pointer is NULL before
+ * actually using it.
+ *
  * The swapchain texture is managed by the implementation and must not be
  * freed by the user. You MUST NOT call this function from any thread other
  * than the one that created the window.