core(ocl): Don't query image formats when none exist
clGetSupportedImageFormats returns CL_INVALID_VALUE if called with num_entries 0 and a non-NULL image_formats pointer so let's not do that.
Showing
Please
register
or
sign in
to comment