Patrice,
VS2017 recommends to turn #define macro into constexpr, your thought?
My dev platform is a commercial VS 2013 Ultimate, and I'm sorry to say but it doesn't support
constexpr which appeared in VS 2015. I wouldn't want to change it for a later platform yet, mainly because of the necessity to renovate the free licenses of newer Community versions every 30 days or so.
... then we reload it, in the gl_LoadTexture.
I don't see any error there
We shouldn't just reload them as they were. If they were mipmapped, we should reload them un-mipmapped and vice versa. Alas, this isn't so. As far as my eyes can see, they are reloaded unaltered exactly as they were -- mipmapped or not. OTOH ObjReader preserves its
Mipmap textures setting between model reloads, so that
the next model loaded in the same session will have its textures (un-)mipmapped according to the new setting. Correct me if I'm wrong but I think I am not.
Thanks for the patch; my comment will follow after the merger.