Simon Hug The documentation of SDL_UpateTexture does not say that the pixel data has to be in the format of the texture.