Skip to content

Commit

Permalink
Added a note that SDL_RenderReadPixels() should be called before SDL_…
Browse files Browse the repository at this point in the history
…RenderPresent()
  • Loading branch information
slouken committed Mar 18, 2022
1 parent 6c96217 commit 40b7326
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/SDL_render.h
Original file line number Diff line number Diff line change
Expand Up @@ -1662,7 +1662,8 @@ extern DECLSPEC int SDLCALL SDL_RenderGeometryRaw(SDL_Renderer *renderer,
* Read pixels from the current rendering target to an array of pixels.
*
* **WARNING**: This is a very slow operation, and should not be used
* frequently.
* frequently. If you're using this on the main rendering target, it
* should be called after rendering and before SDL_RenderPresent().
*
* `pitch` specifies the number of bytes between rows in the destination
* `pixels` data. This allows you to write to a subrectangle or have padded
Expand Down

0 comments on commit 40b7326

Please sign in to comment.