Use direct3d11 on windows for software
This commit is contained in:
parent
53898bc08b
commit
359e30dba6
1 changed files with 4 additions and 0 deletions
|
|
@ -208,6 +208,10 @@ static bool Impl_RenderContextCreate(void)
|
||||||
}
|
}
|
||||||
if (usesdlsoft)
|
if (usesdlsoft)
|
||||||
SDL_SetStringProperty(props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "SDL_SOFTWARE_RENDERER");
|
SDL_SetStringProperty(props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "SDL_SOFTWARE_RENDERER");
|
||||||
|
#ifdef _WIN32
|
||||||
|
else
|
||||||
|
SDL_SetStringProperty(props, SDL_PROP_RENDERER_CREATE_NAME_STRING, "direct3d11");
|
||||||
|
#endif
|
||||||
SDL_SetNumberProperty(props, SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_NUMBER, cv_vidwait.value);
|
SDL_SetNumberProperty(props, SDL_PROP_RENDERER_CREATE_PRESENT_VSYNC_NUMBER, cv_vidwait.value);
|
||||||
SDL_SetPointerProperty(props, SDL_PROP_RENDERER_CREATE_WINDOW_POINTER, window);
|
SDL_SetPointerProperty(props, SDL_PROP_RENDERER_CREATE_WINDOW_POINTER, window);
|
||||||
renderer = SDL_CreateRendererWithProperties(props);
|
renderer = SDL_CreateRendererWithProperties(props);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue