forked from bartvdbraak/blender
Fix leak w/ ocio glsl draw
This commit is contained in:
parent
df58d6bf76
commit
a2989b89c3
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user