Texture Size and pict size

Dear Coders,
is it nessesery to set texture size alway for 2^x by 2^y. What if I need map picture that is not 2^n size.

greetings

Mateusz

The texture must be of size 2^x by 2^y. If you use the NV_texture_rectangle extension, you can use any size (up to a maximum of course). If this extension is not supported by your implementation of OpenGL, then you must scale the image.

You can make a n^2 image thats bigger than you texture, and insert your image in the lower left corner, and size the texture coords to just show that part.