diff --git a/src/api.cpp b/src/api.cpp index a57a808b..9bcbbf00 100644 --- a/src/api.cpp +++ b/src/api.cpp @@ -4853,7 +4853,6 @@ cl_int CLVK_API_CALL clGetSupportedImageFormats(cl_context context, } if ((features & required_format_feature_flags) == required_format_feature_flags) { - const cl_image_format& clfmt = clvkfmt.first; VkComponentMapping components_sampled, components_storage; get_component_mappings_for_channel_order(clfmt.image_channel_order, &components_sampled,