fixed bug when deallocating memory from models with multiple children

This commit is contained in:
devZoGok
2021-10-19 19:06:40 +03:00
parent c84b5d77b9
commit 3fd06f4932
8 changed files with 161 additions and 161 deletions
+2 -2
View File
@@ -1,5 +1,6 @@
#include"material.h"
#include"shader.h"
#include"root.h"
using namespace std;
@@ -51,8 +52,7 @@ namespace vb01{
shader->use();
if(type==MATERIAL_2D){
shader->setBool(lightingEnabled,"lightingEnabled");
if(normalMapEnabled)
shader->setBool(normalMapEnabled,"normalMapEnabled");
shader->setBool(normalMapEnabled,"normalMapEnabled");
}
shader->setBool(texturingEnabled,"texturingEnabled");
if(type==MATERIAL_GUI){