summaryrefslogtreecommitdiffstats
path: root/examples/gui/analogclock/main.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2014-03-19 16:00:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-20 10:36:34 +0100
commitf5b552b5900d3bed72ace43c22f35c09b499bbdf (patch)
treecde523d354ae4335d5174a2c6feb17349ace24fb /examples/gui/analogclock/main.cpp
parent9508ea4c501c42b9c39dd6026a543d5766836097 (diff)
Return false on context creation failure
Make QOpenGLContext::create() return false when the native context could not be initialized. This way the return value and isValid() become equivalent. Relying on on having a non-NULL platform context is not enough, many platforms will return a new instance even if the underlying platform code failed to create a native context. To ensure that a platform context is really usable, isValid() has to be checked too. Change-Id: I6b4e9fdb24347ad52fbd6edbb8d144d51e16c301 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'examples/gui/analogclock/main.cpp')
0 files changed, 0 insertions, 0 deletions