mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-26 19:43:30 +00:00
fixed bug when deallocating memory from models with multiple children
This commit is contained in:
@@ -30,7 +30,8 @@ namespace vb01{
|
||||
for(Mesh *m : meshes)
|
||||
delete m;
|
||||
|
||||
delete material;
|
||||
if(material)
|
||||
delete material;
|
||||
|
||||
glDeleteVertexArrays(1,&VAO);
|
||||
glDeleteBuffers(1,&EBO);
|
||||
@@ -163,7 +164,7 @@ namespace vb01{
|
||||
if(reflect){
|
||||
shader->setBool(reflect,"environmentMapEnabled");
|
||||
root->getSkybox()->getMaterial()->getDiffuseMap(0)->select(4);
|
||||
//environmentMap->select(4);
|
||||
environmentMap->select(4);
|
||||
}
|
||||
if(skeleton){
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user