修正Geometry3D范例中没有释放ubo_color的问题
This commit is contained in:
parent
9ef8f09deb
commit
ecf8357e7b
@ -1 +1 @@
|
|||||||
Subproject commit 3714dd1016363bb3c0791c33bc7e14cad672a810
|
Subproject commit fccbd425e23f0b82f2953313fd8bacf7a01c5379
|
@ -141,6 +141,8 @@ private:
|
|||||||
|
|
||||||
ro_round_rectangle=CreateRenderableRoundRectangle(db,m2d.material,&rrci);
|
ro_round_rectangle=CreateRenderableRoundRectangle(db,m2d.material,&rrci);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.eye.Set(200,200,200,1.0);
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
@ -164,6 +166,8 @@ public:
|
|||||||
|
|
||||||
m2d.material_instance->BindUBO("color_material",ubo_color);
|
m2d.material_instance->BindUBO("color_material",ubo_color);
|
||||||
m2d.material_instance->Update();
|
m2d.material_instance->Update();
|
||||||
|
|
||||||
|
db->Add(ubo_color);
|
||||||
}
|
}
|
||||||
|
|
||||||
CreateRenderObject();
|
CreateRenderObject();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user