mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-22 11:40:08 +00:00
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:
parent
3a20df2918
commit
b25c0dd777
@ -114,12 +114,6 @@ GLComputeEvaluator::GLComputeEvaluator() : _workGroupSize(64) {
|
||||
}
|
||||
|
||||
GLComputeEvaluator::~GLComputeEvaluator() {
|
||||
if (_stencilKernel.program) {
|
||||
glDeleteProgram(_stencilKernel.program);
|
||||
}
|
||||
if (_patchKernel.program) {
|
||||
glDeleteProgram(_patchKernel.program);
|
||||
}
|
||||
}
|
||||
|
||||
static GLuint
|
||||
|
Loading…
Reference in New Issue
Block a user