Windows and Vulkan fixes for AMD GPU

This commit is contained in:
Jack Andersen
2017-11-08 22:10:43 -10:00
parent 1a2fc1d2a3
commit 165314b817
10 changed files with 85 additions and 80 deletions

View File

@@ -93,4 +93,12 @@ struct Boo3DAppContext
}
};
static inline std::string WCSTMBS(const wchar_t* wstr)
{
int sizeNeeded = WideCharToMultiByte(CP_UTF8, 0, wstr, -1, nullptr, 0, nullptr, nullptr) - 1;
std::string strTo(sizeNeeded, 0);
WideCharToMultiByte(CP_UTF8, 0, wstr, -1, &strTo[0], sizeNeeded, nullptr, nullptr);
return strTo;
}
#endif // BOO_WINCOMMON_HPP