Windows fixes

This commit is contained in:
2016-07-23 23:33:23 -07:00
parent d71c01e1d7
commit cf26e39259
2 changed files with 9 additions and 0 deletions

View File

@@ -78,7 +78,9 @@ class ApplicationWin32 final : public IApplication
bool m_singleInstance;
Boo3DAppContext m_3dCtx;
#if BOO_HAS_VULKAN
PFN_vkGetInstanceProcAddr m_getVkProc = nullptr;
#endif
void _deletedWindow(IWindow* window)
{
@@ -423,7 +425,12 @@ public:
return m_mwret;
}
#if BOO_HAS_VULKAN
IWindow* window = _WindowWin32New(title, m_3dCtx, m_getVkProc, sampleCount);
#else
IWindow* window = _WindowWin32New(title, m_3dCtx, nullptr, sampleCount);
#endif
HWND hwnd = HWND(window->getPlatformHandle());
m_allWindows[hwnd] = window;
return window;