make the iOS port use the new render state code.