render: Remove SDL_GetRenderDriverInfo and change SDL_CreateRenderer.

Fixes #6625.
This commit is contained in:
Ryan C. Gordon 2022-12-13 23:26:49 -05:00
parent 1230a8fde8
commit 5a2d0b69c8
No known key found for this signature in database
GPG key ID: FA148B892AB48044
30 changed files with 116 additions and 121 deletions

View file

@ -892,7 +892,7 @@ int main(int argc, char *argv[])
return 2;
}
screen = SDL_CreateRenderer(window, -1, 0);
screen = SDL_CreateRenderer(window, NULL, 0);
if (screen == NULL) {
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't create renderer: %s\n", SDL_GetError());
SDL_DestroyWindow(window);