set resolution uniform to correct value