Merge pull request from lioncash/move

IGraphicsDataFactory: std::move vertex and fragment tokens in newShaderPipeline
This commit is contained in:
Phillip Stephens 2019-08-24 17:32:59 -07:00 committed by GitHub
commit 37ee1895ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
include/boo/graphicsdev

View File

@ -251,7 +251,8 @@ struct IGraphicsDataFactory {
const VertexFormatInfo& vtxFmt,
const AdditionalPipelineInfo& additionalInfo,
bool asynchronous = true) {
return newShaderPipeline(vertex, fragment, {}, {}, {}, vtxFmt, additionalInfo, asynchronous);
return newShaderPipeline(std::move(vertex), std::move(fragment), {}, {}, {}, vtxFmt, additionalInfo,
asynchronous);
}
virtual ObjToken<IShaderDataBinding> newShaderDataBinding(