Use QOpenGLFunctions instead of presuming GL methods exist.
authorRobin Burchell <robin.burchell@collabora.com>
Thu, 12 Jan 2012 18:41:32 +0000 (20:41 +0200)
committerSamuel Rødal <samuel.rodal@nokia.com>
Fri, 13 Jan 2012 10:51:28 +0000 (11:51 +0100)
commite5709a59a0e94977fde68cc4872326b7666748e6
treebf06661bf40a2d6c45b3c4a5c07b39f744ef9b49
parente93a4d213037d79442423a4625619c6a5d2c0577
Use QOpenGLFunctions instead of presuming GL methods exist.

They may not always exist, especially on desktop GL, so this is incorrect and
won't build in some cases.

Credit to Samuel Rødal for setting me on the path :)

Change-Id: I89296c5ed67f9388cceedb08cd68a7b5560be5e9
Sanity-Review: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
examples/qwidget-compositor/main.cpp
examples/qwindow-compositor/qwindowcompositor.cpp