Next Power of 2 and textures

So, I was recently looking into how the sdl2 renderers work, and noticed this NextPower2 function in the PSP renderer

Now, I did not find anything similar in the other renderers.

I remember when using Direct3d9 in the past to have to adjust for D3DPTEXTURECAPS_POW2 but I could not tell from the Direct3d9 renderer code any similar adjustment.

Is this something that is not needed anymore?