summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformopenglwindow.cpp')
-rw-r--r--src/plugins/platforms/android/qandroidplatformopenglwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp b/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
index 05a9ea1b342..a23da707d61 100644
--- a/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
+++ b/src/plugins/platforms/android/qandroidplatformopenglwindow.cpp
@@ -62,8 +62,11 @@ EGLSurface QAndroidPlatformOpenGLWindow::eglSurface(EGLConfig config)
// the Surface
if (!m_surfaceCreated) {
AndroidDeadlockProtector protector;
- if (!protector.acquire())
+ if (!protector.acquire()) {
+ static constexpr char funcName[] = "QAndroidPlatformOpenGLWindow::eglSurface()";
+ qFatal("Failed to acquire deadlock protector for %s.", funcName);
return m_eglSurface;
+ }
createSurface();
qCDebug(lcQpaWindow) << "called createSurface(), waiting for Surface to be ready...";