buffer: do not call cl flush unless OpenCL is enabled (avoids crash)

parent e8c560ad
......@@ -433,7 +433,8 @@ gegl_buffer_iterator_next (GeglBufferIterator *iterator)
if (!found)
gegl_buffer_lock (i->buffer[no]);
gegl_buffer_cl_cache_invalidate (i->buffer[no], &i->rect[no]);
if (gegl_cl_is_accelerated ())
gegl_buffer_cl_cache_invalidate (i->buffer[no], &i->rect[no]);
}
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment