The refractive index will be different in both cases. Refractive index of glass is different for different colours. The speed of blue light is less than the speed of red light. So, the wavelength of blue light is less than that of red light. Thus, red light would deviate less than blue light because of difference in wavelength.