summaryrefslogtreecommitdiffstats
path: root/RenderScript/src/TextureParser.cpp
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-02-09 01:34:03 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-02-09 01:34:03 +0000
commit7f903f32d1dfc48176dad10b67766d9032a0675e (patch)
treedf4d41b3d4c9af9e0163da43d3467301882cb75b /RenderScript/src/TextureParser.cpp
parentImproved handling unordered_maps (diff)
downloadDiligentTools-7f903f32d1dfc48176dad10b67766d9032a0675e.tar.gz
DiligentTools-7f903f32d1dfc48176dad10b67766d9032a0675e.zip
Updated IRenderDevice::CreateTexture and IRenderDevice::CreateBuffer to take pointers to initial data rather than references
Diffstat (limited to 'RenderScript/src/TextureParser.cpp')
-rw-r--r--RenderScript/src/TextureParser.cpp2
1 files changed, 1 insertions, 1 deletions
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<ITexture**>(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")