Schedule D

I live in Texas full time and have a rental property in Pennsylvania. If my only source of income from PA is only through rental money and my primary residence is TX, am I suppose to pay taxes on capital gains on stocks that was sold for the year to PA? 

 

Thank You