Completely disable filtering

Ok, so GL_ARB_texture_non_power_of_two is supported. Do I use GL_TEXTURE_RECTANGLE_ARB, or is there another texture format I should be using? It fails for my 257x257 image, locking up the program, but not for my 6213x4855 image (??). The bigger images don’t display at all. If my video card supports these NPOT textures, why won’t they display?

Use glGet with GL_MAX_TEXTURE_SIZE to determine whether or not your implementation will hold a 6213 x 4855 image - I’d guess you’re probably limited to 4096 x 4096.

You’re right, max texture size is 4096. I’m at a loss as to the best solution here…I guess it’s to create smaller POT textures.

Seeing as you support GL_ARB_texture_non_power_of_two, I’d suggest you just use that with GL_NEAREST (and no mipmapping) and create 4 textures (the maths is easy to do this automatically) -

4096x4096 2177x4096
4096x759 2177x759

Don’t forget to clamp to edge.