summaryrefslogtreecommitdiffstats
path: root/examples/activeqt/opengl/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/activeqt/opengl/main.cpp')
-rw-r--r--examples/activeqt/opengl/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/activeqt/opengl/main.cpp b/examples/activeqt/opengl/main.cpp
index 861bf4e..0596b2b 100644
--- a/examples/activeqt/opengl/main.cpp
+++ b/examples/activeqt/opengl/main.cpp
@@ -72,8 +72,8 @@ int main( int argc, char **argv )
QApplication::setColorSpec( QApplication::CustomColor );
QApplication a(argc,argv);
- if ( !QGLFormat::hasOpenGL() ) {
- qWarning( "This system has no OpenGL support. Exiting." );
+ if (QOpenGLContext::openGLModuleType() != QOpenGLContext::LibGL) {
+ qWarning( "This system does not support OpenGL. Exiting." );
return -1;
}