From 9fc381001570ff73655947e6950e641d1421f1be Mon Sep 17 00:00:00 2001 From: Jack Andersen Date: Fri, 6 Nov 2015 19:25:43 -1000 Subject: [PATCH] Win 7/8 SDK fix --- lib/win/WindowWin32.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/win/WindowWin32.cpp b/lib/win/WindowWin32.cpp index ce61620..674e4c7 100644 --- a/lib/win/WindowWin32.cpp +++ b/lib/win/WindowWin32.cpp @@ -429,9 +429,11 @@ public: CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, NULL, NULL); IGraphicsContext::EGraphicsAPI api = IGraphicsContext::API_D3D11; +#if _WIN32_WINNT_WIN10 if (b3dCtx.m_ctx12.m_dev) api = IGraphicsContext::API_D3D12; - else if (b3dCtx.m_ctxOgl.m_dxFactory) +#endif + if (b3dCtx.m_ctxOgl.m_dxFactory) { m_gfxCtx.reset(new GraphicsContextWin32GL(IGraphicsContext::API_OPENGL_3_3, this, m_hwnd, b3dCtx)); return;