This commit was identified as the cause for a GLArea transparency regression. Bring the required code back. Fixes: #6359