Add BOO_HAS_VULKAN check where needed

This commit is contained in:
Jack Andersen 2018-01-09 20:25:51 -10:00
parent 4257fc0b10
commit b1ce75ed6e
1 changed files with 4 additions and 2 deletions

View File

@ -113,9 +113,11 @@ public:
m_3dCtx.m_ctx12.m_anisotropy = anisotropy;
m_3dCtx.m_ctxOgl.m_glCtx.m_sampleCount = samples;
m_3dCtx.m_ctxOgl.m_glCtx.m_anisotropy = anisotropy;
#if BOO_HAS_VULKAN
g_VulkanContext.m_sampleCountColor = samples;
g_VulkanContext.m_sampleCountDepth = samples;
g_VulkanContext.m_anisotropy = anisotropy;
#endif
HMODULE dxgilib = LoadLibraryW(L"dxgi.dll");
if (!dxgilib)
@ -149,9 +151,9 @@ public:
useVulkan = false;
}
#else
if (!gfxApi.compare(L"D3D12"))
if (!gfxApi.compare("D3D12"))
yes12 = true;
if (!gfxApi.compare(L"OpenGL"))
if (!gfxApi.compare("OpenGL"))
noD3d = true;
#endif
}