I tried to use GL_REPLACE and it worked fine if I disabled GL_BLEND. The problem is that some parts of my texture is transparent. (Using alpa blending: 0 value=not visible, 255=visible). So when I turn of the blending the image is no longer transparent. And if I use blending the image have different colors than the original bmp file.
I want the image to look exactly like the bmp file with some pixels not visible. Is this possible in openGL?