fix memory leak at InlineGeometryScene.cpp

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

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);
}

View File

@@ -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: