From 4304d740b47696c992659978291e73ab7575ffcb Mon Sep 17 00:00:00 2001 From: yangxiao Date: Fri, 4 Jul 2014 17:22:39 +0800 Subject: [PATCH] delete call back --- cocos/renderer/CCGLProgramState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocos/renderer/CCGLProgramState.cpp b/cocos/renderer/CCGLProgramState.cpp index 38f1306079..5652db4e8e 100644 --- a/cocos/renderer/CCGLProgramState.cpp +++ b/cocos/renderer/CCGLProgramState.cpp @@ -62,8 +62,8 @@ UniformValue::UniformValue(Uniform *uniform, GLProgram* glprogram) UniformValue::~UniformValue() { -// if (_useCallback) -// delete _value.callback; + if (_useCallback) + delete _value.callback; } void UniformValue::apply()