From 1e06b106e1e9eedf78da01f6f001e432ac6cd29d Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 23 Mar 2019 19:01:21 -0700 Subject: Fixed warning in texturing test when running in D3D11/D3D12 modes --- Tests/TestApp/src/TestTexturing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Tests/TestApp/src/TestTexturing.cpp') diff --git a/Tests/TestApp/src/TestTexturing.cpp b/Tests/TestApp/src/TestTexturing.cpp index 5c2ccf8..2b5f5a2 100644 --- a/Tests/TestApp/src/TestTexturing.cpp +++ b/Tests/TestApp/src/TestTexturing.cpp @@ -287,7 +287,7 @@ void TestTexturing::Init( IRenderDevice *pDevice, IDeviceContext *pDeviceContext StaticSampler.Desc.MipFilter = FilterType; StaticSampler.ShaderStages = SHADER_TYPE_PIXEL; StaticSampler.SamplerOrTextureName = "g_tex2DTest"; - PSODesc.ResourceLayout.NumStaticSamplers = 1; + PSODesc.ResourceLayout.NumStaticSamplers = !(bIsIntTexture && pDevice->GetDeviceCaps().IsD3DDevice()) ? 1 : 0; PSODesc.ResourceLayout.StaticSamplers = &StaticSampler; pDevice->CreatePipelineState(PSODesc, &m_pPSO); -- cgit v1.2.3