windows: use directx 11 by default
This commit is contained in:
parent
234955ac01
commit
6f5f91245b
|
@ -415,10 +415,10 @@ extern AudioVolumeOption AudioVolume;
|
|||
class RendererOption : public Option<RenderType> {
|
||||
public:
|
||||
RendererOption()
|
||||
#ifdef USE_DX9
|
||||
: Option<RenderType>("pvr.rend", RenderType::DirectX9) {}
|
||||
#elif defined(USE_DX11)
|
||||
#if defined(USE_DX11)
|
||||
: Option<RenderType>("pvr.rend", RenderType::DirectX11) {}
|
||||
#elif defined(USE_DX9)
|
||||
: Option<RenderType>("pvr.rend", RenderType::DirectX9) {}
|
||||
#else
|
||||
: Option<RenderType>("pvr.rend", RenderType::OpenGL) {}
|
||||
#endif
|
||||
|
|
|
@ -35,7 +35,6 @@ GraphicsContext *GraphicsContext::instance;
|
|||
|
||||
void initRenderApi(void *window, void *display)
|
||||
{
|
||||
bool dx11Failed = false;
|
||||
#ifdef USE_VULKAN
|
||||
if (isVulkan(config::RendererType))
|
||||
{
|
||||
|
@ -48,6 +47,7 @@ void initRenderApi(void *window, void *display)
|
|||
}
|
||||
#endif
|
||||
#ifdef USE_DX11
|
||||
bool dx11Failed = false;
|
||||
if (config::RendererType == RenderType::DirectX11 || config::RendererType == RenderType::DirectX11_OIT)
|
||||
{
|
||||
theDX11Context.setWindow(window, display);
|
||||
|
|
Loading…
Reference in New Issue