mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
[Windows] Drop support for Windows 7/8/8.1.
This commit is contained in:
@@ -42,19 +42,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef DCOMP_ENABLED
|
||||
#if (WINVER < _WIN32_WINNT_WIN8) && defined(_MSC_VER)
|
||||
#pragma push_macro("NTDDI_VERSION")
|
||||
#pragma push_macro("WINVER")
|
||||
#undef NTDDI_VERSION
|
||||
#undef WINVER
|
||||
#define NTDDI_VERSION NTDDI_WIN8
|
||||
#define WINVER _WIN32_WINNT_WIN8
|
||||
#include <dcomp.h>
|
||||
#pragma pop_macro("WINVER")
|
||||
#pragma pop_macro("NTDDI_VERSION")
|
||||
#else
|
||||
#include <dcomp.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <d3dx12.h>
|
||||
|
||||
@@ -45,7 +45,7 @@ static Error set_name(const String &p_name) {
|
||||
HANDLE hThread = GetCurrentThread();
|
||||
HRESULT res = E_FAIL;
|
||||
if (w10_SetThreadDescription) {
|
||||
res = w10_SetThreadDescription(hThread, (LPCWSTR)p_name.utf16().get_data());
|
||||
res = w10_SetThreadDescription(hThread, (LPCWSTR)p_name.utf16().get_data()); // Windows 10 Redstone (1607) only.
|
||||
}
|
||||
return SUCCEEDED(res) ? OK : ERR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user