Fix GLSL program being deleted twice in GLSL Compute controller

GLSL programs used by stencil and patch kernels were freed from
both GLSL Compute Evaluator and from kernel classes themselves.
This commit is contained in:
Sergey Sharybin 2015-09-10 20:00:42 +05:00
parent 3a20df2918
commit b25c0dd777

View File

@ -114,12 +114,6 @@ GLComputeEvaluator::GLComputeEvaluator() : _workGroupSize(64) {
}
GLComputeEvaluator::~GLComputeEvaluator() {
if (_stencilKernel.program) {
glDeleteProgram(_stencilKernel.program);
}
if (_patchKernel.program) {
glDeleteProgram(_patchKernel.program);
}
}
static GLuint