1
Window / Window doesn't have an alpha channel
« on: August 10, 2012, 08:08:07 am »
Hi !
I have a problem with the window creation with SFML. Here's how a create my window :
sf::Window(sf::VideoMode(640, 480, 32),
"OpenGL", sf::Style::Default,
sf::ContextSettings(32, 0, 0, 2, 1)),
Even if I create my window with 32 bpp, it seems like the window does not have an alpha channel. I checked with gDEBugger which tells me that GL_ALPHA_BITS is 0. The consequence is that when I do a glReadPixels, I can't get the alpha channel.
Btw, blending with GL_BLEND works fine and I'm using SFML2 (revision 5706111) on Linux.
Any help on that?
I have a problem with the window creation with SFML. Here's how a create my window :
sf::Window(sf::VideoMode(640, 480, 32),
"OpenGL", sf::Style::Default,
sf::ContextSettings(32, 0, 0, 2, 1)),
Even if I create my window with 32 bpp, it seems like the window does not have an alpha channel. I checked with gDEBugger which tells me that GL_ALPHA_BITS is 0. The consequence is that when I do a glReadPixels, I can't get the alpha channel.
Btw, blending with GL_BLEND works fine and I'm using SFML2 (revision 5706111) on Linux.
Any help on that?