summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsintegration.cpp
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@digia.com>2014-09-25 13:07:18 +0200
committerKai Koehne <kai.koehne@digia.com>2014-10-02 09:16:44 +0200
commit97a65e198056929a03272353a80e0b1cf3f5f515 (patch)
tree9fa957e80e910a19f0520f0c34349ca4ae6104b2 /src/plugins/platforms/windows/qwindowsintegration.cpp
parent538248d930a7c62212a18f81c31d381752beff13 (diff)
Warn when loading opengl32sw.dll fails
Print a warning when the developer/user has explicitly requested the software backend, but loading openglsw.dll fails. Change-Id: I8b1f079538ac70ceacbf1a397a276659c760a4cc Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsintegration.cpp')
-rw-r--r--src/plugins/platforms/windows/qwindowsintegration.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowsintegration.cpp b/src/plugins/platforms/windows/qwindowsintegration.cpp
index c0dca0a220..84b71925e1 100644
--- a/src/plugins/platforms/windows/qwindowsintegration.cpp
+++ b/src/plugins/platforms/windows/qwindowsintegration.cpp
@@ -354,8 +354,10 @@ QWindowsStaticOpenGLContext *QWindowsStaticOpenGLContext::create()
if (!ctx) {
ctx = QOpenGLStaticContext::create(true);
// If software was explicitly requested but failed, try the regular one.
- if (!ctx && softwareRequested && QWindowsOpenGLTester::testDesktopGL())
+ if (!ctx && softwareRequested && QWindowsOpenGLTester::testDesktopGL()) {
+ qCWarning(lcQpaGl, "Software OpenGL failed. Falling back to system OpenGL.");
ctx = QOpenGLStaticContext::create();
+ }
}
}
#elif defined(QT_OPENGL_ES_2)