mirror of
https://github.com/ApfelTeeSaft/vb01.git
synced 2026-08-26 19:33:45 +00:00
fixed bug when deallocating memory from models with multiple children
This commit is contained in:
+2
-2
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user