fosphor/cl: Make sure to unlocking the GL objects during CL release
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
This commit is contained in:
parent
51af8dd083
commit
0c658dd3dd
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue