SDL: OpenGL instead of Direct3D11 for Software blitter

Repaired performance regression under certain play conditions
This commit is contained in:
toaster 2022-10-26 20:47:08 +01:00
parent 0a98f9c69a
commit d13c1f83e8

View file

@ -1782,7 +1782,7 @@ static SDL_bool Impl_CreateWindow(SDL_bool fullscreen)
// "direct3d" driver (D3D9) causes Drmingw exchndl // "direct3d" driver (D3D9) causes Drmingw exchndl
// to not write RPT files. Every other driver // to not write RPT files. Every other driver
// seems fine. // seems fine.
SDL_SetHint(SDL_HINT_RENDER_DRIVER, "direct3d11"); SDL_SetHint(SDL_HINT_RENDER_DRIVER, "opengl");
renderer = SDL_CreateRenderer(window, -1, flags); renderer = SDL_CreateRenderer(window, -1, flags);
if (renderer == NULL) if (renderer == NULL)