From 6570764cdf3ff74fb88ff1ce1eeaaa9bdb534e88 Mon Sep 17 00:00:00 2001 From: Jcw87 Date: Sat, 15 Feb 2020 12:37:25 -0800 Subject: [PATCH] Fix D3D11 crash. --- lib/graphicsdev/D3D11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/graphicsdev/D3D11.cpp b/lib/graphicsdev/D3D11.cpp index 6b2638c..81955df 100644 --- a/lib/graphicsdev/D3D11.cpp +++ b/lib/graphicsdev/D3D11.cpp @@ -1306,7 +1306,7 @@ class D3D11DataFactoryImpl : public D3D11DataFactory, public GraphicsDataFactory const std::array vfmt{{{VertexSemantic::Position4}, {VertexSemantic::UV4}}}; AdditionalPipelineInfo info = { BlendFactor::One, BlendFactor::Zero, Primitive::TriStrips, ZTest::None, false, true, false, CullMode::None}; - m_gammaShader = ctx.newShaderPipeline(vertexShader, fragmentShader, vfmt.data(), info); + m_gammaShader = ctx.newShaderPipeline(vertexShader, fragmentShader, VertexFormatInfo(vfmt.size(), vfmt.data()), info); m_gammaLUT = ctx.newDynamicTexture(256, 256, TextureFormat::I16, TextureClampMode::ClampToEdge); setDisplayGamma(1.f);