diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-09-07 21:20:58 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-09-07 21:20:58 +0300 |
commit | a2989b89c363f1312275e132e39c9a06eb4a4c3a (patch) | |
tree | 0de0a690f3fc50d52f571791ccf037433241b339 /intern/opencolorio/ocio_impl_glsl.cc | |
parent | df58d6bf76e6551e26fe64480b842f0e18b75e4b (diff) |
Fix leak w/ ocio glsl draw
Diffstat (limited to 'intern/opencolorio/ocio_impl_glsl.cc')
-rw-r--r-- | intern/opencolorio/ocio_impl_glsl.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/opencolorio/ocio_impl_glsl.cc b/intern/opencolorio/ocio_impl_glsl.cc index 6d634da0477..08f3c15eb95 100644 --- a/intern/opencolorio/ocio_impl_glsl.cc +++ b/intern/opencolorio/ocio_impl_glsl.cc @@ -376,6 +376,9 @@ bool OCIOImpl::setupGLSLDraw(OCIO_GLSLDrawState **state_r, OCIO_ConstProcessorRc } if (state->program) { + if (state->shader_interface) { + GWN_shaderinterface_discard(state->shader_interface); + } state->shader_interface = GWN_shaderinterface_create(state->program); } |