Display Port only working after HDMI is plugged in

Jun 13, 2018
1
0
10
So I didnt know what category to put this in so here goes

PC was fine until it just black screened and turned off. I thought it could be a GPU problem or something but the HDMI had an output.The display port still showed no output.

However, when both the HDMI and the display port were plugged in you could remove the HDMI and the display port will work. How can i fix this so that I can start my PC without the need of the HDMI?