I lost a few days wondering why some textures were completely distorted when loaded in OpenGL.
The thing is, they were only distorted when the colours components were packed as GL_UNSIGNED_SHORT_5_5_5_1 or GL_UNSIGNED_SHORT_4_4_4_4. When packing colour…