It's true that some of the blood pressure meds cause erectile dysfunction.
But, it is well known that the high blood pressure itself leads to permanent blood vessels changes in penis, leading to decreased blood flow to the penis that result in problems with achieving and maintaining erections, even causing problems with ejaculation and reduced sexual desire.
For you it will be important not to find only a drug without side effect-ED, but, also, a drug that will be controlling your blood pressure.
People with not regulated blood pressure are at greater risk for ED.
Ask your physician to get switched to other groups of blood pressure drugs, like alpha-blockers or angiotensin II receptor blockers.
Some clinical studies have suggested that these drugs may even improve the sexual function in hypertensive men.