Correct CPU mipmap generation for sRGB textures