qt5base-lts/examples/opengl/hellogl2
Laszlo Agocs b46ffbca0c Fix up QOpenGLWidget transparency support
The glColorMask call was troublesome. In addition, the Qt::WA_TranslucentBackground
was misinterpreted and recommended misleadingly in the documentation. The hellogl2
example's --transparent argument was disfunctional in practice.

Replace glColorMask with glBlendFuncSeparate. The hellogl2 example and the docs are
now corrected wrt enabling semi-transparency in a QOpenGLWidget that is not a top-level
(which is the most common case).

Task-number: QTBUG-47276
Change-Id: I6f40e732d455f5efcf158649ac9a52ff9f240e85
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
2015-09-24 12:51:37 +00:00
..
glwidget.cpp Fix up QOpenGLWidget transparency support 2015-09-24 12:51:37 +00:00
glwidget.h Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
hellogl2.pro Modernize the OpenGL examples 2014-08-12 07:47:23 +02:00
logo.cpp Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
logo.h Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
main.cpp Fix up QOpenGLWidget transparency support 2015-09-24 12:51:37 +00:00
mainwindow.cpp Updated Hello GL2 Example to new Signal/Slot syntax 2015-06-29 11:30:01 +00:00
mainwindow.h Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00
window.cpp Updated Hello GL2 Example to new Signal/Slot syntax 2015-06-29 11:30:01 +00:00
window.h Updated BSD licensed file headers 2015-02-15 07:41:17 +00:00