Details
-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
4.6.1
-
None
-
ubuntu karmic 9.10
Linux wizard 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 GNU/Linux
Intel(R) Core(TM)2 Quad CPU Q9300 @ 2.50GHz
VGA compatible controller: nVidia Corporation G94 [GeForce 9600 GT] (rev a1)
-
1113ec294d0f92f4961d3f102ef7a702a765cfe3
Description
I have an OpenGL based application which saves it's own screenshots by QGLWidget::grabFrameBuffer().
If I draw a half transparent texture somewhere and save a screenshot in png, it's clearly visible
in an image viewer that the png is half transparent where the texture was.
I checked the code src/opengl/qgl.cpp where the call ends up in:
static void convertFromGLImage(QImage &img, int w, int h, bool alpha_format, bool include_alpha)
here include_alpha is checked only for big endian machines, otherwise ignored.