From 3c8fa483a325ff3f82ba23c5fc24c7a731761d17 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Sat, 9 Feb 2019 15:06:00 -0800 Subject: Replaced reference to initial data parameter with pointer in CreateTexture and CreateBuffer methods; updated light scattering implementation to not use lua --- 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 ab55c94..26f48ef 100644 --- a/Tests/TestApp/src/TestSeparateTextureSampler.cpp +++ b/Tests/TestApp/src/TestSeparateTextureSampler.cpp @@ -114,7 +114,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I TexDesc.Usage = USAGE_DEFAULT; TexDesc.BindFlags = BIND_SHADER_RESOURCE; RefCntAutoPtr pTexture; - pDevice->CreateTexture( TexDesc, TextureData(), &pTexture ); + pDevice->CreateTexture( TexDesc, nullptr, &pTexture ); RefCntAutoPtr pSampler; pDevice->CreateSampler( SamplerDesc{}, &pSampler ); @@ -148,7 +148,7 @@ TestSeparateTextureSampler::TestSeparateTextureSampler(IRenderDevice *pDevice, I RenderTargetDesc.Format = TEX_FORMAT_RGBA8_UNORM; RenderTargetDesc.Name = "TestSeparateTextureSampler: test render target"; RefCntAutoPtr pRenderTarget; - pDevice->CreateTexture(RenderTargetDesc, TextureData{}, &pRenderTarget); + pDevice->CreateTexture(RenderTargetDesc, nullptr, &pRenderTarget); ITextureView* pRTV[] = {pRenderTarget->GetDefaultView(TEXTURE_VIEW_RENDER_TARGET)}; pContext->SetRenderTargets(1, pRTV, nullptr, RESOURCE_STATE_TRANSITION_MODE_TRANSITION); -- cgit v1.2.3