mono/MonoGame — pull request #1033 by Aranda (2012-11-27 08:16:08+00:00)
Title: Avoid adding mipmaps for non power of two textures on iOS [COMMENTS?]

This is a potential workaround for https://github.com/mono/MonoGame/issues/1028.

Strictly speaking, one should not provide mipmaps on non-pow2 textures if the target platforms don't support it. However, since MonoGame is highly cross platform, and other platforms do support it (eg Android), the best solution may be to simply ignore the mip maps and log a debug message.

It may even be better to throw an exception with a useful message here so the user is aware that something is not right. Thoughts?

So far I've only tested on an iPad 1, and I'd like to try it on more devices. Also, we should try disabling the code to find out exactly which devices need it. I can try on an iPhone 4 later. Perhaps there is a GL extension that indicates support...