pioneerspacesim/pioneer — pull request #1422 by johnbartholomew (2012-08-07 22:26:56+00:00)
Title: Scale textures to have power-of-two dimensions

This is to get #1251 off the books. I suspect most people are running on systems that have [ARB_texture_non_power_of_two](http://www.opengl.org/registry/specs/ARB/texture_non_power_of_two.txt), where this was never a problem, but this should avoid difficulties for those few who aren't so lucky.

This also deletes a couple of textures that aren't (as far as I can tell from grepping) referenced by any models.

Probably the reason this kept being put off is because it's "nicer" not to do a (lossy) image scaling operation on the underlying texture images, and instead add extra borders and adjust model texture coordinates to match (either in the data files or during the loading process). However, frankly these textures aren't so detailed or high quality enough to require such care, so I've just done a normal scaling operation in gimp. In a couple of cases I've scaled a dimension down rather than up.

There are still a lot of *images* (facegen components and icons) that don't have power-of-two dimensions, but the facegen components don't hit OpenGL (faces are composited with SDL image ops), and I guess the icon images are extended to power-of-two when they're loaded (`TextureBuilder` has some code to do that).

Also related: #1035.