Fixed ResizeToPowerOfTwo.
Merge pull request #2811 from SickheadGames/texpot

Fixed ResizeToPowerOfTwo