diff options
Diffstat (limited to 'lib/fosphor/cl.c')
-rw-r--r-- | lib/fosphor/cl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/fosphor/cl.c b/lib/fosphor/cl.c index 270f36d..da6f279 100644 --- a/lib/fosphor/cl.c +++ b/lib/fosphor/cl.c @@ -864,6 +864,12 @@ fosphor_cl_release(struct fosphor *self) if (!cl) return; + /* Release the GL objects */ + if ((cl->state == CL_PENDING) && (self->flags & FLG_FOSPHOR_USE_CLGL_SHARING)) + { + cl_lock_unlock(cl, 0, NULL); + } + /* Release all allocated OpenCL resources */ cl_do_release(cl); |