layers: Fix invalid depth/stencil attachment index validation

Was validating against color attachment index instead of attachment
index for depth/stencil ClearAttachment calls.
1 file changed