fix memory leak at InlineGeometryScene.cpp

This commit is contained in:
hyzboy 2020-10-22 01:29:09 +08:00
parent 91ce2a73ab
commit ba72addfbf
4 changed files with 6 additions and 4 deletions

View File

@ -37,7 +37,6 @@ SET(ULRE CMCore
ULRE.VulkanRender
ULRE.SceneGraph
MathGeoLib
${JSONCPP_LIBRARY}
${RENDER_LIBRARY}
${Vulkan_LIBRARIES})

View File

@ -99,6 +99,9 @@ private:
texture.color =CreateTextureFromFile(device,OS_TEXT("res/image/Brickwall/Albedo.Tex2D"));
texture.normal =CreateTextureFromFile(device,OS_TEXT("res/image/Brickwall/Normal.Tex2D"));
db->Add(texture.color);
db->Add(texture.normal);
}
{
@ -170,7 +173,7 @@ private:
cci.halfExtend=10;
cci.radius=10;
cci.numberSlices=128;
cci.numberStacks=1;
cci.numberStacks=32;
ro_cone=CreateRenderableCone(db,material,&cci);
}