From a1c8dc9d4503ee419250ed0fffcd13b2d19e138d Mon Sep 17 00:00:00 2001 From: "florent.teppe" Date: Thu, 4 Aug 2022 09:50:02 +0200 Subject: [PATCH] C++17 compat ? --- components/shader/shadermanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/shader/shadermanager.cpp b/components/shader/shadermanager.cpp index a0b4248c55..5a21c67510 100644 --- a/components/shader/shadermanager.cpp +++ b/components/shader/shadermanager.cpp @@ -372,7 +372,7 @@ namespace Shader HotReloadManager() { mHotReloadEnabled = false; - mLastAutoRecompileTime = std::chrono::file_clock::now(); + mLastAutoRecompileTime = std::filesystem::file_time_type::clock::now(); } void addShaderFiles(std::set& shaderFiles,const osg::ref_ptr& shader,const std::string& templateName,const ShaderManager::DefineMap& defines ) @@ -437,7 +437,7 @@ namespace Shader } } } - mLastAutoRecompileTime = std::chrono::file_clock::now(); + mLastAutoRecompileTime = std::filesystem::file_time_type::clock::now(); } };