This fixes a "discards const" warning since blend is const.
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
bool dual_src_blend = false;
if (wm_prog_data->dual_src_blend) {
for (uint32_t i = 0; i < blend->attachmentCount; i++) {
- VkPipelineColorBlendAttachmentState *bstate = &blend->pAttachments[i];
+ const VkPipelineColorBlendAttachmentState *bstate =
+ &blend->pAttachments[i];
+
if (bstate->blendEnable &&
(is_dual_src_blend_factor(bstate->srcColorBlendFactor) ||
is_dual_src_blend_factor(bstate->dstColorBlendFactor) ||