Patch to add support for non-power-of-two textures in OpenGL 2.0
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
This patch against the nightly CVS allows for non-power-of-two textures if that feature is supported in OpenGL. The fallback is the current behavior (resample to nearest power of two), which is also used if the texture is too large. For large textures, this step should save both processing time and memory.
The patch is slightly inefficient in that it instantiates an extension manager object at texture creation to query for the appropriate OpenGL extension. This step only happens once, though.