Fixed OnResourceDestroy callback not called by the destructor
Former-commit-id: 8b961101f88343ddd3bb382d2c333052efb03164
This commit is contained in:
@@ -43,6 +43,11 @@ NzMaterial::NzMaterial(NzMaterial&& material)
|
||||
unit.program.Reset();
|
||||
}
|
||||
|
||||
NzMaterial::~NzMaterial()
|
||||
{
|
||||
NotifyDestroy();
|
||||
}
|
||||
|
||||
void NzMaterial::Apply(const NzShaderProgram* program) const
|
||||
{
|
||||
int alphaThresholdLocation = program->GetUniformLocation(nzShaderUniform_MaterialAlphaThreshold);
|
||||
|
||||
Reference in New Issue
Block a user