Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions include/CL/opencl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3648,8 +3648,8 @@ class Context
cl_mem_object_type type,
vector<ImageFormat>* formats) const
{
if (!formats) {
return CL_SUCCESS;
if( formats == nullptr ) {
return detail::errHandler(CL_INVALID_ARG_VALUE, __GET_SUPPORTED_IMAGE_FORMATS_ERR);
}
return getSupportedImageFormats(flags, type, *formats);
}
Expand Down