From 7f903f32d1dfc48176dad10b67766d9032a0675e Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 8 Feb 2019 17:34:03 -0800 Subject: Updated IRenderDevice::CreateTexture and IRenderDevice::CreateBuffer to take pointers to initial data rather than references --- RenderScript/src/TextureParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'RenderScript/src/TextureParser.cpp') diff --git a/RenderScript/src/TextureParser.cpp b/RenderScript/src/TextureParser.cpp index c092bbd..3d8cf56 100644 --- a/RenderScript/src/TextureParser.cpp +++ b/RenderScript/src/TextureParser.cpp @@ -165,7 +165,7 @@ namespace Diligent auto ppTexture = reinterpret_cast(lua_newuserdata( L, sizeof( ITexture* ) )); *ppTexture = nullptr; - m_pRenderDevice->CreateTexture( TextureDesc, TextureData(), ppTexture ); + m_pRenderDevice->CreateTexture( TextureDesc, nullptr, ppTexture ); if( *ppTexture == nullptr ) SCRIPT_PARSING_ERROR(L, "Failed to create a texture") -- cgit v1.2.3