Hi everybody,
these check some corner cases in how GL_TEXTURE_MAX_LEVEL is initialized
for immutable textures. Mesa does not do this yet, which among other things
leads to a user-visible bug in mipmap generation as exposed in
https://bugs.freedesktop.org/show_bug.cgi?id=91993 .
Please review. I will submit a patch for Mesa momentarily.
Cheers,
Nicolai