From 82d59de0d193554e1231b06347078d41ed8ec8d3 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 30 Nov 2018 23:15:55 -0800 Subject: Improved thread safety of enum flags; added explicit state transitions to SetRenderTargets() --- Tests/TestApp/src/TestSeparateTextureSampler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tests/TestApp/src/TestSeparateTextureSampler.cpp') diff --git a/Tests/TestApp/src/TestSeparateTextureSampler.cpp b/Tests/TestApp/src/TestSeparateTextureSampler.cpp index bc31712..d1df07e 100644 --- a/Tests/TestApp/src/TestSeparateTextureSampler.cpp +++ b/Tests/TestApp/src/TestSeparateTextureSampler.cpp @@ -151,7 +151,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I pDevice->CreateTexture(RenderTargetDesc, TextureData{}, &pRenderTarget); ITextureView* pRTV[] = {pRenderTarget->GetDefaultView(TEXTURE_VIEW_RENDER_TARGET)}; - pContext->SetRenderTargets(1, pRTV, nullptr); + pContext->SetRenderTargets(1, pRTV, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL); float Zero[4] = {}; pContext->ClearRenderTarget(pRTV[0], Zero); pContext->SetPipelineState(pPSO); @@ -161,7 +161,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I DrawAttrs.NumVertices = 3; pContext->Draw(DrawAttrs); - pContext->SetRenderTargets(0, nullptr, nullptr); + pContext->SetRenderTargets(0, nullptr, nullptr, SET_RENDER_TARGETS_FLAG_TRANSITION_ALL); SetStatus(TestResult::Succeeded); } -- cgit v1.2.3