b46ffbca0c
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> |
||
---|---|---|
.. | ||
glwidget.cpp | ||
glwidget.h | ||
hellogl2.pro | ||
logo.cpp | ||
logo.h | ||
main.cpp | ||
mainwindow.cpp | ||
mainwindow.h | ||
window.cpp | ||
window.h |