fix memory leak at InlineGeometryScene.cpp
This commit is contained in:
parent
91ce2a73ab
commit
ba72addfbf
@ -37,7 +37,6 @@ SET(ULRE CMCore
|
|||||||
ULRE.VulkanRender
|
ULRE.VulkanRender
|
||||||
ULRE.SceneGraph
|
ULRE.SceneGraph
|
||||||
MathGeoLib
|
MathGeoLib
|
||||||
${JSONCPP_LIBRARY}
|
|
||||||
${RENDER_LIBRARY}
|
${RENDER_LIBRARY}
|
||||||
${Vulkan_LIBRARIES})
|
${Vulkan_LIBRARIES})
|
||||||
|
|
||||||
|
@ -99,6 +99,9 @@ private:
|
|||||||
|
|
||||||
texture.color =CreateTextureFromFile(device,OS_TEXT("res/image/Brickwall/Albedo.Tex2D"));
|
texture.color =CreateTextureFromFile(device,OS_TEXT("res/image/Brickwall/Albedo.Tex2D"));
|
||||||
texture.normal =CreateTextureFromFile(device,OS_TEXT("res/image/Brickwall/Normal.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.halfExtend=10;
|
||||||
cci.radius=10;
|
cci.radius=10;
|
||||||
cci.numberSlices=128;
|
cci.numberSlices=128;
|
||||||
cci.numberStacks=1;
|
cci.numberStacks=32;
|
||||||
|
|
||||||
ro_cone=CreateRenderableCone(db,material,&cci);
|
ro_cone=CreateRenderableCone(db,material,&cci);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user