mirror of https://github.com/AxioDL/boo.git
Add BOO_HAS_VULKAN check where needed
This commit is contained in:
parent
4257fc0b10
commit
b1ce75ed6e
|
@ -113,9 +113,11 @@ public:
|
||||||
m_3dCtx.m_ctx12.m_anisotropy = anisotropy;
|
m_3dCtx.m_ctx12.m_anisotropy = anisotropy;
|
||||||
m_3dCtx.m_ctxOgl.m_glCtx.m_sampleCount = samples;
|
m_3dCtx.m_ctxOgl.m_glCtx.m_sampleCount = samples;
|
||||||
m_3dCtx.m_ctxOgl.m_glCtx.m_anisotropy = anisotropy;
|
m_3dCtx.m_ctxOgl.m_glCtx.m_anisotropy = anisotropy;
|
||||||
|
#if BOO_HAS_VULKAN
|
||||||
g_VulkanContext.m_sampleCountColor = samples;
|
g_VulkanContext.m_sampleCountColor = samples;
|
||||||
g_VulkanContext.m_sampleCountDepth = samples;
|
g_VulkanContext.m_sampleCountDepth = samples;
|
||||||
g_VulkanContext.m_anisotropy = anisotropy;
|
g_VulkanContext.m_anisotropy = anisotropy;
|
||||||
|
#endif
|
||||||
|
|
||||||
HMODULE dxgilib = LoadLibraryW(L"dxgi.dll");
|
HMODULE dxgilib = LoadLibraryW(L"dxgi.dll");
|
||||||
if (!dxgilib)
|
if (!dxgilib)
|
||||||
|
@ -149,9 +151,9 @@ public:
|
||||||
useVulkan = false;
|
useVulkan = false;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
if (!gfxApi.compare(L"D3D12"))
|
if (!gfxApi.compare("D3D12"))
|
||||||
yes12 = true;
|
yes12 = true;
|
||||||
if (!gfxApi.compare(L"OpenGL"))
|
if (!gfxApi.compare("OpenGL"))
|
||||||
noD3d = true;
|
noD3d = true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue