Fix opengl resource leak that was triggering an assertion during destruction. CR-NCA-2876.
Merge commit '21ec60d87bf19c55b5e155d69db60ce682ecaae1' into st
Merge branch 'st' of git://github.com/suitabletech/qtbase into st