Could this -1 be replaced by a #define similar to RR_ALL_LAYERS?