diff --git a/Source/Core/VideoCommon/AsyncShaderCompiler.h b/Source/Core/VideoCommon/AsyncShaderCompiler.h index fb117dab28..fc0bca8d72 100644 --- a/Source/Core/VideoCommon/AsyncShaderCompiler.h +++ b/Source/Core/VideoCommon/AsyncShaderCompiler.h @@ -11,6 +11,7 @@ #include #include #include +#include #include #include "Common/CommonTypes.h" @@ -36,9 +37,9 @@ public: virtual ~AsyncShaderCompiler(); template - static WorkItemPtr CreateWorkItem(Params... params) + static WorkItemPtr CreateWorkItem(Params&&... params) { - return std::unique_ptr(new T(params...)); + return std::unique_ptr(new T(std::forward(params)...)); } void QueueWorkItem(WorkItemPtr item);