SDL_ttf 2.0.18 Surface to OpenGL texture not consistent with ttf 2.0.15

The format hasn’t changed but the surface created by SDL_tff has a pitch greater than width.
(4 * surface->w < surface->pitch)
You should either tighly repack (inplace) the memory surface->pixels or somehow add a parameter to tell it to opengl