Fix the pixel format when updating textures.

It only worked if SDL_CreateRGBSurface happened to be called with the
exact same pixel format as textures.