render: SDL_HINT_RENDER_DRIVER now accepts a comma-separated list.

Fixes #11077.
This commit is contained in:
Ryan C. Gordon
2025-01-21 11:23:04 -05:00
parent 670a7d8126
commit c45c4a5e51
3 changed files with 35 additions and 18 deletions

View File

@@ -219,6 +219,9 @@ extern SDL_DECLSPEC bool SDLCALL SDL_CreateWindowAndRenderer(const char *title,
* don't need a specific renderer, specify NULL and SDL will attempt to choose
* the best option for you, based on what is available on the user's system.
*
* If `name` is a comma-separated list, SDL will try each name, in the order
* listed, until one succeeds or all of them fail.
*
* By default the rendering size matches the window size in pixels, but you
* can call SDL_SetRenderLogicalPresentation() to change the content size and
* scaling options.