diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-12 23:22:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-12 23:22:02 +0100 |
commit | bbc6543172b3a55534e2a8ae3d31349f71d277c6 (patch) | |
tree | c3928614bd8a459d157461e0911402e817d4b638 /platform/windows | |
parent | d11f9f4817c04ad404857757896d28540c6b1f86 (diff) | |
parent | 6961ed21bb6e1ce082eef33ebcd5b9cfed270634 (diff) |
Merge pull request #7763 from Limb/fixwindowscompile
Fixed compilation issues with Visual Studio
Diffstat (limited to 'platform/windows')
-rw-r--r-- | platform/windows/os_windows.cpp | 5 | ||||
-rw-r--r-- | platform/windows/os_windows.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp index b230dda9cb..d26575d338 100644 --- a/platform/windows/os_windows.cpp +++ b/platform/windows/os_windows.cpp @@ -2395,6 +2395,11 @@ bool OS_Windows::is_vsync_enabled() const{ return true; } +bool OS_Windows::check_feature_support(const String& p_feature) { + + return VisualServer::get_singleton()->has_os_feature(p_feature); + +} OS_Windows::OS_Windows(HINSTANCE _hInstance) { diff --git a/platform/windows/os_windows.h b/platform/windows/os_windows.h index 2c8fa64f8e..4314b340ce 100644 --- a/platform/windows/os_windows.h +++ b/platform/windows/os_windows.h @@ -286,6 +286,8 @@ public: virtual void set_use_vsync(bool p_enable); virtual bool is_vsync_enabled() const; + virtual bool check_feature_support(const String& p_feature); + OS_Windows(HINSTANCE _hInstance); ~OS_Windows(); |