CreateTextureFromSurface failed: Invalid renderer

See answer here: