mirror of
https://github.com/AxioDL/boo.git
synced 2025-12-14 23:56:29 +00:00
Windows and Vulkan fixes for AMD GPU
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user