Texture, Transparency, alpha channel


I have a short query relating to an alpha channel of a .jpg of an image.

I am calling the .draw() method of the texture after glEnableAlphaBlending() and after glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA), glEnable(GL_BLEND). But still when the image is being drawn, the alpha channel is being displayed i.e. the black and white squared background is being drawn to the screen as well.

What I was hoping to happen was that the background that the texture was being drawn to would be displayed instead since Alpha blending was enabled.

Any Help at all as to where I am going wrong would be great :slight_smile:

Many Thanks!

jpegs don’t have alpha use something like png instead

thanks. worked