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
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