draw: fix clipping of layer/vp index outputs