GL: std::move vertex and fragment instances in SetupGammaResources()

Avoids an atomic reference count increment and decrement.
This commit is contained in:
Lioncash 2019-08-24 20:16:01 -04:00
parent c0c353f56b
commit ab65983750
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class GLDataFactoryImpl final : public GLDataFactory, public GraphicsDataFactory
const AdditionalPipelineInfo info = {
BlendFactor::One, BlendFactor::Zero, Primitive::TriStrips, ZTest::None, false, true, false, CullMode::None};
const std::array<VertexElementDescriptor, 2> vfmt{{{VertexSemantic::Position4}, {VertexSemantic::UV4}}};
m_gammaShader = ctx.newShaderPipeline(vertex, fragment, vfmt.data(), info);
m_gammaShader = ctx.newShaderPipeline(std::move(vertex), std::move(fragment), vfmt.data(), info);
m_gammaLUT = ctx.newDynamicTexture(256, 256, TextureFormat::I16, TextureClampMode::ClampToEdge);
struct Vert {
std::array<float, 4> pos;