layers: Fix indices in DrawState error message
If imageView aspect for DescriptorSet Update has both Depth and Stencil set, top-level "WriteDescriptorSet" is governed by "i" and specific descriptor within that particular WriteDescriptorSet is governed by "j".
diff --git a/layers/draw_state.cpp b/layers/draw_state.cpp
index 1673931..6e708d0 100755
--- a/layers/draw_state.cpp
+++ b/layers/draw_state.cpp
@@ -886,7 +886,7 @@
(flags & VK_IMAGE_ASPECT_STENCIL_BIT)) {
skipCall |= log_msg(mdd(device), VK_DBG_REPORT_ERROR_BIT, VK_OBJECT_TYPE_IMAGE_VIEW, dInfo->imageView.handle, 0,
DRAWSTATE_INVALID_IMAGE_ASPECT, "DS", "vkUpdateDescriptorSets: DesriptorSet[%d] in WriteDesriptorSet[%d] "
- "has ImageView with both STENCIL and DEPTH aspects set", i, j);
+ "has ImageView with both STENCIL and DEPTH aspects set", j, i);
}
}
}