Well, my actual problem was the clamp-thing: First I called glTexParameteri with the wrong parameters. Second I have to call glTexParameteri before sending the texture to the graphics card.