mirror of
https://github.com/AxioDL/boo.git
synced 2025-05-14 19:31:20 +00:00
Win 7/8 SDK fix
This commit is contained in:
parent
566befed81
commit
9fc3810015
@ -429,9 +429,11 @@ public:
|
|||||||
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
|
||||||
NULL, NULL, NULL, NULL);
|
NULL, NULL, NULL, NULL);
|
||||||
IGraphicsContext::EGraphicsAPI api = IGraphicsContext::API_D3D11;
|
IGraphicsContext::EGraphicsAPI api = IGraphicsContext::API_D3D11;
|
||||||
|
#if _WIN32_WINNT_WIN10
|
||||||
if (b3dCtx.m_ctx12.m_dev)
|
if (b3dCtx.m_ctx12.m_dev)
|
||||||
api = IGraphicsContext::API_D3D12;
|
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));
|
m_gfxCtx.reset(new GraphicsContextWin32GL(IGraphicsContext::API_OPENGL_3_3, this, m_hwnd, b3dCtx));
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user