The treaty makes it sound as if it's the other way around
Are we still talking about Hungary? If yes there's a foreign tax credit up to the Hungarian tax payable on the creditable income (at a maximum of 90% of income tax paid abroad).
Hungary - Corporate - Tax credits and incentives
Detailed description of corporate tax credits and incentives in Hungary
taxsummaries.pwc.com