Will #1 The problem is that the moment width and height are passed into GLAdjustTexSize they are passed in as 0. They should be passed in as the correct dimensions and then resized to power of two dimensions later in the function.