libobs-d3d11: Use get_win_ver (not GetVersionEx)
This commit is contained in:
parent
0fb79a4733
commit
278fd03a66
@ -18,6 +18,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <util/AlignedNew.hpp>
|
||||
#include <util/windows/win-version.h>
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
@ -49,11 +50,10 @@ using namespace std;
|
||||
|
||||
static inline uint32_t GetWinVer()
|
||||
{
|
||||
OSVERSIONINFO ovi;
|
||||
ovi.dwOSVersionInfoSize = sizeof(ovi);
|
||||
GetVersionEx(&ovi);
|
||||
struct win_version_info ver;
|
||||
get_win_ver(&ver);
|
||||
|
||||
return (ovi.dwMajorVersion << 8) | (ovi.dwMinorVersion);
|
||||
return (ver.major << 8) | ver.minor;
|
||||
}
|
||||
|
||||
static inline DXGI_FORMAT ConvertGSTextureFormat(gs_color_format format)
|
||||
|
Loading…
x
Reference in New Issue
Block a user