remove check for colorLocation as on some platforms it is optimized out