0

I've been trying for hours now to figure out why this piece of code is giving me seg fault, but can't figure out why.
void pixel::Texture::LoadTexture(const char* filepath)
{
SDL_Surface* image = IMG_Load(filepath);
SDL_Surface* formattedImage = SDL_ConvertSurfaceFormat(image, SDL_PIXEL...