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.SceneGraph
|
||||
MathGeoLib
|
||||
${JSONCPP_LIBRARY}
|
||||
${RENDER_LIBRARY}
|
||||
${Vulkan_LIBRARIES})
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ private:
|
||||
Sampler * sampler =nullptr;
|
||||
MaterialInstance * material_instance =nullptr;
|
||||
RenderableInstance *renderable_instance =nullptr;
|
||||
GPUBuffer * ubo_world_matrix =nullptr;
|
||||
GPUBuffer * ubo_world_matrix =nullptr;
|
||||
Pipeline * pipeline =nullptr;
|
||||
|
||||
private:
|
||||
|
@ -119,7 +119,7 @@ public: //Get
|
||||
Pipeline * GetPipeline (const PipelineID &id){return rm_pipeline.Get(id);}
|
||||
DescriptorSets * GetDescSets (const DescriptorSetsID &id){return rm_desc_sets.Get(id);}
|
||||
Renderable * GetRenderable (const RenderableID &id){return rm_renderables.Get(id);}
|
||||
GPUBuffer * GetBuffer (const BufferID &id){return rm_buffers.Get(id);}
|
||||
GPUBuffer * GetBuffer (const BufferID &id){return rm_buffers.Get(id);}
|
||||
Sampler * GetSampler (const SamplerID &id){return rm_samplers.Get(id);}
|
||||
Texture * GetTexture (const TextureID &id){return rm_textures.Get(id);}
|
||||
RenderableInstance *GetRenderableInstance (const RenderableInstanceID &id){return rm_renderable_instances.Get(id);}
|
||||
|
Loading…
x
Reference in New Issue
Block a user